mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-18 15:32:23 +00:00
Add .leave-gather to the command button so it disables the leave confirm dialog
This commit is contained in:
parent
f50c209702
commit
d8134cadb7
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