forked from TWS/kalkutago
Fix bug where clearing ticks on one day would clear all ticks for the track on all days
This commit is contained in:
parent
9b876511d9
commit
bfe0537750
4 changed files with 40 additions and 8 deletions
|
|
@ -15,7 +15,7 @@ const className = computed(() => isSet.value ? "button is-rounded is-info" : "bu
|
|||
|
||||
async function toggle() {
|
||||
if (isSet.value) {
|
||||
await state.taskMarkedIncomplete(props.track)
|
||||
await state.taskMarkedIncomplete(props.track, props.date)
|
||||
} else
|
||||
await state.taskCompleted(props.track, props.date)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue