mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
Return rails ujs
This commit is contained in:
parent
78693f3001
commit
a3b5210b41
3 changed files with 6 additions and 3 deletions
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,6 @@
|
|||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
|
||||
|
||||
import "@rails/ujs"
|
||||
import "@rails/actioncable"
|
||||
import "controllers"
|
||||
import "@hotwired/turbo-rails"
|
||||
|
|
@ -12,3 +13,5 @@ import "./channels"
|
|||
|
||||
import "trix"
|
||||
import "@rails/actiontext"
|
||||
|
||||
Rails.start()
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<% if policy(@family).leave? %>
|
||||
<% if policy(@family).leave? && !current_user.family_owner? %>
|
||||
<%= link_to leave_family_path(@family),
|
||||
method: :delete,
|
||||
data: { confirm: 'Are you sure you want to leave this family?', turbo_confirm: 'Are you sure you want to leave this family?' },
|
||||
|
|
|
|||
Loading…
Reference in a new issue