Added data-disable to all button_to to fix double click issue (#923)

This commit is contained in:
Ahmad Farhat
2020-01-22 16:40:37 -05:00
committed by farhatahmad
parent 8a8eee52fe
commit eb965e5c52
10 changed files with 30 additions and 30 deletions

View File

@ -25,7 +25,7 @@
</div>
<% if Rails.configuration.terms && current_user && !current_user.accepted_terms %>
<div class="btn-list text-right pt-8">
<%= button_to t("terms.accept_existing"), terms_path, params: { accept: true }, class: "btn btn-primary btn-space" %>
<%= button_to t("terms.accept_existing"), terms_path, params: { accept: true }, class: "btn btn-primary btn-space", "data-disable": "" %>
</div>
<% end %>
</form>