From 0d3661a4bc19b961801513dda36a289ef2518d70 Mon Sep 17 00:00:00 2001 From: Settel Date: Tue, 15 Mar 2022 08:07:50 +0100 Subject: [PATCH] feat: enable/disable buttons according to state and phase --- client/src/components/GameControls.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/GameControls.vue b/client/src/components/GameControls.vue index 85df3eb..e803b9d 100644 --- a/client/src/components/GameControls.vue +++ b/client/src/components/GameControls.vue @@ -27,7 +27,7 @@ export default { collect: state !== 'idle', start: state !== 'idle', continue: state !== 'play' && ['select-quote', 'reveal-show-count', 'reveal-source'].indexOf(phase) == -1, - idle: false, + idle: state === 'idle', finish: ['play', 'idle'].indexOf(state) == -1, } }