Ensure icon_only persists after turbo frame reload
This commit is contained in:
@@ -51,7 +51,7 @@ module AccessesHelper
|
||||
method: :put,
|
||||
aria: { labelledby: involvement_label_id },
|
||||
class: "btn",
|
||||
params: { show_watchers: show_watchers, involvement: next_involvement(access.involvement) }
|
||||
params: { show_watchers: show_watchers, involvement: next_involvement(access.involvement), icon_only: icon_only }
|
||||
) do
|
||||
safe_join([
|
||||
icon_tag("notification-bell-#{icon_only ? 'reverse-' : nil}#{access.involvement.dasherize}"),
|
||||
|
||||
@@ -1 +1 @@
|
||||
<%= access_involvement_advance_button(@collection, Current.user, show_watchers: params[:show_watchers] == 'true') %>
|
||||
<%= access_involvement_advance_button(@collection, Current.user, show_watchers: params[:show_watchers] == 'true', icon_only: params[:icon_only] == 'true') %>
|
||||
|
||||
Reference in New Issue
Block a user