Disable confirmation dialogs

This commit is contained in:
Jesse C. Fisher 2021-11-21 02:08:09 -08:00
parent 3fba8ce18c
commit e51b389328

View File

@ -6,10 +6,12 @@
-# = button_to remove_bot_seat_path(seat) do
- "- Bot"
- if seat.occupied_by? current_user
= button_to stand_seat_path(seat), :data => { :confirm => 'Are you sure you want to leave this seat?' } do
-# = button_to stand_seat_path(seat), :data => { :confirm => 'Are you sure you want to leave this seat?' } do
= button_to stand_seat_path(seat) do
- "Leave"
- else
= button_to empty_seat_path(seat), :data => { :confirm => 'Are you sure you want to empty this seat?' } do
-# = button_to empty_seat_path(seat), :data => { :confirm => 'Are you sure you want to empty this seat?' } do
= button_to empty_seat_path(seat) do
- "Empty"
- else
= button_to sit_seat_path(seat) do
@ -18,7 +20,8 @@
- "+ Bot"
- if seat.player
= button_to remove_player_seat_path(seat), :data => { :confirm => 'Are you sure you want to remove this player?' } do
-# = button_to remove_player_seat_path(seat), :data => { :confirm => 'Are you sure you want to remove this player?' } do
= button_to remove_player_seat_path(seat) do
- "Remove Player"
.player{id: "player-#{seat.player.id}", class: @game.controlling_player == seat.player ? "taking-turn" : "",
data: {soft_token: seat.player.soft_token} }