From e51b3893288217c19366dbc4852da04cafffd607 Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Sun, 21 Nov 2021 02:08:09 -0800 Subject: [PATCH] Disable confirmation dialogs --- app/views/tables/_seat.html.haml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/tables/_seat.html.haml b/app/views/tables/_seat.html.haml index 0914b709..e3582725 100644 --- a/app/views/tables/_seat.html.haml +++ b/app/views/tables/_seat.html.haml @@ -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} }