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

@ -265,6 +265,7 @@ import Rights from '../../../models/rights.json'
import {LOADING, LOADING_MODULE} from '@/store/mutation-types'
import FilterPopup from '@/components/list/partials/filter-popup'
import Dropdown from '@/components/misc/dropdown'
import {playPop} from '@/helpers/playPop'
export default {
name: 'Kanban',
@ -421,6 +422,11 @@ export default {
this.$set(this.taskUpdating, task.id, true)
task.done = !task.done
this.$store.dispatch('tasks/update', task)
.then(() => {
if(task.done) {
playPop()
}
})
.catch(e => {
this.error(e, this)
})