feat: enable/disable buttons according to state and phase

This commit is contained in:
Settel 2022-03-15 08:07:50 +01:00
parent 0f74661e07
commit 0d3661a4bc

View File

@ -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,
}
}