forked from External/greenlight
Added data-disable to all button_to to fix double click issue (#923)
This commit is contained in:
committed by
farhatahmad
parent
8a8eee52fe
commit
eb965e5c52
@ -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>
|
||||
|
Reference in New Issue
Block a user