Play a sound when marking a task as done
This commit is contained in:
parent
91a4a39527
commit
7f5140bbb4
8 changed files with 42 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Reference in a new issue