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

@ -47,7 +47,7 @@
<%= link_to room_path(room), class: "dropdown-item" do %>
<i class="dropdown-icon far fa-eye"></i> <%= t("administrator.rooms.view") %>
<% end %>
<%= button_to start_room_path(room), class: "dropdown-item" do %>
<%= button_to start_room_path(room), class: "dropdown-item", "data-disable": "" do %>
<i class="dropdown-icon fas fa-door-open"></i> <%= running ? t("room.join") : t("room.start") %>
<% end %>
<a href="" data-toggle="modal" data-target="#createRoomModal" class="update-room dropdown-item">