diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 50e94f057851..fc3bc92de1d6 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -426,7 +426,7 @@ def locale_first_week_of_year # To avoid the menu flickering, disable it # by default unless we're in test mode def initial_menu_styles(side_displayed) - Rails.env.test? || !side_displayed ? "" : "display:none" + Rails.env.test? || request.headers["Accept"].include?("text/vnd.turbo-stream.html") || !side_displayed ? "" : "display:none" end def initial_menu_classes(side_displayed, show_decoration) diff --git a/app/views/custom_fields/edit.html.erb b/app/views/custom_fields/edit.html.erb index cce977d02363..00d0fecdd4fc 100644 --- a/app/views/custom_fields/edit.html.erb +++ b/app/views/custom_fields/edit.html.erb @@ -45,6 +45,6 @@ See COPYRIGHT and LICENSE files for more details. url: custom_field_path(@custom_field), html: { method: :put, id: 'custom_field_form' } do |f| %> <%= render partial: 'form', locals: { f: f } %> - <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %> + <%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark', data: { turbo: false } %> <% end %> <% end %> diff --git a/app/views/enterprises/_form.html.erb b/app/views/enterprises/_form.html.erb index 2da2486690f3..d0fd56160c50 100644 --- a/app/views/enterprises/_form.html.erb +++ b/app/views/enterprises/_form.html.erb @@ -19,7 +19,7 @@ spellcheck: false %>
- <%= styled_button_tag t(:button_save), id: 'token-submit-button', class: '-primary -with-icon icon-checkmark' %> + <%= styled_button_tag t(:button_save), id: 'token-submit-button', class: '-primary -with-icon icon-checkmark', data: { turbo: false } %> <%= link_to t(:button_cancel), { action: :show }, class: 'button -with-icon icon-cancel' %> <% end %> <% end %> diff --git a/app/views/groups/_memberships.html.erb b/app/views/groups/_memberships.html.erb index 8426d22ee27b..939fdce0f6a8 100644 --- a/app/views/groups/_memberships.html.erb +++ b/app/views/groups/_memberships.html.erb @@ -146,7 +146,7 @@ See COPYRIGHT and LICENSE files for more details. <%= labeled_check_box_tags 'membership[role_ids][]', roles %> -