feat: enable/disable buttons according to state and phase
This commit is contained in:
parent
0f74661e07
commit
0d3661a4bc
@ -27,7 +27,7 @@ export default {
|
|||||||
collect: state !== 'idle',
|
collect: state !== 'idle',
|
||||||
start: state !== 'idle',
|
start: state !== 'idle',
|
||||||
continue: state !== 'play' && ['select-quote', 'reveal-show-count', 'reveal-source'].indexOf(phase) == -1,
|
continue: state !== 'play' && ['select-quote', 'reveal-show-count', 'reveal-source'].indexOf(phase) == -1,
|
||||||
idle: false,
|
idle: state === 'idle',
|
||||||
finish: ['play', 'idle'].indexOf(state) == -1,
|
finish: ['play', 'idle'].indexOf(state) == -1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user