feat: don't rethrow same error and handle errors globally
This commit is contained in:
parent
6f51921588
commit
3b940cb56c
71 changed files with 69 additions and 451 deletions
|
|
@ -84,9 +84,6 @@ export default {
|
|||
this.$emit('update:modelValue', this.assignees)
|
||||
this.$message.success({message: this.$t('task.assignee.assignSuccess')})
|
||||
})
|
||||
.catch(e => {
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
removeAssignee(user) {
|
||||
this.$store.dispatch('tasks/removeAssignee', {user: user, taskId: this.taskId})
|
||||
|
|
@ -99,9 +96,6 @@ export default {
|
|||
}
|
||||
this.$message.success({message: this.$t('task.assignee.unassignSuccess')})
|
||||
})
|
||||
.catch(e => {
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
findUser(query) {
|
||||
if (query === '') {
|
||||
|
|
@ -114,9 +108,6 @@ export default {
|
|||
// Filter the results to not include users who are already assigned
|
||||
this.foundUsers = response.filter(({id}) => !includesById(this.assignees, id))
|
||||
})
|
||||
.catch(e => {
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
clearAllFoundUsers() {
|
||||
this.foundUsers = []
|
||||
|
|
|
|||
Reference in a new issue