mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 13:31:06 +00:00
Add .leave-gather to the command button so it disables the leave confirm dialog
This commit is contained in:
parent
0895072845
commit
3ef9c72a4c
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
|||
<% end %>
|
||||
|
||||
<%= form_tag "/gathers/captain/#{@gather.id}" do %>
|
||||
<%= submit_tag (@gather.captain1 == @gatherer or @gather.captain2 == @gatherer) ? 'Stop Commanding' : 'Command a Team', class: 'button tiny' %>
|
||||
<%= submit_tag (@gather.captain1 == @gatherer or @gather.captain2 == @gatherer) ? 'Stop Commanding' : 'Command a Team', class: 'button tiny leave-gather' %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to 'Leave Gather', @gatherer, confirm: 'Are you sure?', method: :delete, class: 'button tiny leave-gather' %>
|
||||
|
|
Loading…
Reference in a new issue