1
0

fix: namespace collision of global error method with draggable error method

This commit is contained in:
Dominik Pschenitschni
2021-08-25 12:28:29 +02:00
committed by kolaente
parent 0da7a46612
commit ebeca48be4
57 changed files with 229 additions and 209 deletions

View File

@ -206,7 +206,7 @@ export default {
this.$set(this, 'tasks', tasks)
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
},
updateTasks(updatedTask) {

View File

@ -567,7 +567,7 @@ export default {
this.setTitle(this.task.title)
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
.finally(() => {
this.$nextTick(() => this.visible = true)
@ -628,10 +628,10 @@ export default {
callback: undoCallback,
}]
}
this.success({message: this.$t('task.detail.updateSuccess')}, actions)
this.$message.success({message: this.$t('task.detail.updateSuccess')}, actions)
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
})
},
@ -656,11 +656,11 @@ export default {
deleteTask() {
this.$store.dispatch('tasks/delete', this.task)
.then(() => {
this.success({message: this.$t('task.detail.deleteSuccess')})
this.$message.success({message: this.$t('task.detail.deleteSuccess')})
this.$router.push({name: 'list.index', params: {listId: this.task.listId}})
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
},
toggleTaskDone() {
@ -701,7 +701,7 @@ export default {
this.$store.dispatch('namespaces/loadNamespacesIfFavoritesDontExist')
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
},
},