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

@ -92,6 +92,7 @@ import User from '../../misc/user'
import Fancycheckbox from '../../input/fancycheckbox'
import DeferTask from './defer-task'
import {closeWhenClickedOutside} from '@/helpers/closeWhenClickedOutside'
import {playPop} from '@/helpers/playPop'
export default {
name: 'singleTaskInList',
@ -164,6 +165,9 @@ export default {
const updateFunc = () => {
this.taskService.update(this.task)
.then(t => {
if(this.task.done) {
playPop()
}
this.task = t
this.$emit('task-updated', t)
this.success(