1
0

Refactor success and error messages

This commit is contained in:
kolaente
2021-06-22 22:07:57 +02:00
parent ab4edc17de
commit cdc805c8da
55 changed files with 219 additions and 256 deletions

View File

@ -84,10 +84,10 @@ export default {
this.$store.dispatch('tasks/addAssignee', {user: user, taskId: this.taskId})
.then(() => {
this.$emit('input', this.assignees)
this.success({message: 'The user has been assigned successfully.'}, this)
this.success({message: 'The user has been assigned successfully.'})
})
.catch(e => {
this.error(e, this)
this.error(e)
})
},
removeAssignee(user) {
@ -99,10 +99,10 @@ export default {
this.assignees.splice(a, 1)
}
}
this.success({message: 'The user has been unassinged successfully.'}, this)
this.success({message: 'The user has been unassinged successfully.'})
})
.catch(e => {
this.error(e, this)
this.error(e)
})
},
findUser(query) {
@ -119,7 +119,7 @@ export default {
}))
})
.catch(e => {
this.error(e, this)
this.error(e)
})
},
clearAllFoundUsers() {