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

@ -67,10 +67,10 @@
</div>
<div class="offset-lg-1 col-lg-3 col-sm-12 force-bottom mt-5">
<% if @room_running %>
<%= button_to t("room.join"), room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %>
<%= button_to t("room.join"), room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right", "data-disable": "" %>
<% else %>
<% unless exceeds_limit %>
<%= button_to t("room.start"), start_room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right" %>
<%= button_to t("room.start"), start_room_path(@room), class: "btn btn-primary btn-block px-7 start-button float-right", "data-disable": "" %>
<% end %>
<% end %>
</div>