🐛 (controls) resume and pause with p, next only if no break times

This commit is contained in:
Julien Calixte
2023-04-21 23:45:31 +02:00
parent a90d3620d6
commit 8ebb4ccc60

View File

@@ -80,11 +80,19 @@ const notUsingInput = computed(
const { n, p, s } = useMagicKeys()
whenever(logicAnd(notUsingInput, n), () => {
if (record.value?.breakTime) {
return
}
nextStep()
})
whenever(logicAnd(notUsingInput, p), () => {
if (record.value?.breakTime) {
recordStore.resume(props.taskId)
} else {
recordStore.pause(props.taskId)
}
})
whenever(logicAnd(notUsingInput, s), () => {