Skip to content

Commit

Permalink
disable turbo on erroneous pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ulferts committed Dec 10, 2024
1 parent cbcee86 commit edc2ec6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/views/custom_fields/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
2 changes: 1 addition & 1 deletion app/views/enterprises/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
spellcheck: false %>

<div class="form--space"></div>
<%= 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 %>
2 changes: 1 addition & 1 deletion app/views/roles/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= hidden_field_tag :id, @role.id %>
<%= render partial: 'form', locals: { f: f , role: @role } %>
<br/>
<%= styled_button_tag t(:button_save), class: '-with-icon icon-checkmark' %>
<%= styled_button_tag t(:button_save), class: '-with-icon icon-checkmark', data: { turbo: false } %>
<% end %>
2 changes: 1 addition & 1 deletion app/views/roles/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @role, :url => { :action => 'create' }, :html => {:id => 'role_form'}, :as => :role do |f| %>
<%= render partial: 'form', locals: { f: f, role: @role, roles: @roles } %>
<br/>
<%= styled_button_tag t(:button_create), class: '-with-icon icon-checkmark' %>
<%= styled_button_tag t(:button_create), class: '-with-icon icon-checkmark', data: { turbo: false } %>
<% end %>
3 changes: 2 additions & 1 deletion modules/meeting/app/views/meeting_contents/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ See COPYRIGHT and LICENSE files for more details.
<p><%= f.text_field :journal_notes, label: :comments %></p>
<%= styled_button_tag t(:button_save),
class: '-primary -with-icon icon-checkmark button--save-agenda',
data: { disable_with: I18n.t(:label_loading) } %>
data: { disable_with: I18n.t(:label_loading),
turbo: false } %>
<%= link_to t(:button_cancel),
"#",
data: {
Expand Down

0 comments on commit edc2ec6

Please sign in to comment.