1
0

Play a sound when marking a task as done

This commit is contained in:
kolaente
2021-01-30 21:45:54 +01:00
parent 91a4a39527
commit 7f5140bbb4
8 changed files with 42 additions and 2 deletions

View File

@ -421,6 +421,7 @@ import ColorPicker from '../../components/input/colorPicker'
import attachmentUpload from '../../components/tasks/mixins/attachmentUpload'
import heading from '@/components/tasks/partials/heading'
import Datepicker from '@/components/input/datepicker'
import {playPop} from '@/helpers/playPop'
export default {
name: 'TaskDetailView',
@ -644,6 +645,11 @@ export default {
},
toggleTaskDone() {
this.task.done = !this.task.done
if(this.task.done) {
playPop()
}
this.saveTask(true, () => this.toggleTaskDone())
},
setDescriptionChanged(e) {