fix: namespace collision of global error method with draggable error method
This commit is contained in:

committed by
kolaente

parent
0da7a46612
commit
ebeca48be4
@ -229,10 +229,10 @@ export default {
|
||||
'attachments/removeById',
|
||||
this.attachmentToDelete.id,
|
||||
)
|
||||
this.success(r)
|
||||
this.$message.success(r)
|
||||
})
|
||||
.catch((e) => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
.finally(() => {
|
||||
this.showDeleteModal = false
|
||||
|
@ -234,7 +234,7 @@ export default {
|
||||
this.makeActions()
|
||||
})
|
||||
.catch((e) => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
addComment() {
|
||||
@ -256,11 +256,11 @@ export default {
|
||||
.then((r) => {
|
||||
this.comments.push(r)
|
||||
this.newComment.comment = ''
|
||||
this.success({message: this.$t('task.comment.addedSuccess')})
|
||||
this.$message.success({message: this.$t('task.comment.addedSuccess')})
|
||||
this.makeActions()
|
||||
})
|
||||
.catch((e) => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
.finally(() => {
|
||||
this.creating = false
|
||||
@ -296,7 +296,7 @@ export default {
|
||||
}, 2000)
|
||||
})
|
||||
.catch((e) => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
.finally(() => {
|
||||
this.isCommentEdit = false
|
||||
@ -314,7 +314,7 @@ export default {
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
.finally(() => {
|
||||
this.showDeleteModal = false
|
||||
|
@ -132,7 +132,7 @@ export default {
|
||||
this.$emit('input', r)
|
||||
})
|
||||
.catch((e) => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
},
|
||||
|
@ -89,7 +89,7 @@ export default {
|
||||
}, 2000)
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
.finally(() => {
|
||||
this.saving = false
|
||||
|
@ -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: this.$t('task.assignee.assignSuccess')})
|
||||
this.$message.success({message: this.$t('task.assignee.assignSuccess')})
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
removeAssignee(user) {
|
||||
@ -99,10 +99,10 @@ export default {
|
||||
this.assignees.splice(a, 1)
|
||||
}
|
||||
}
|
||||
this.success({message: this.$t('task.assignee.assignSuccess')})
|
||||
this.$message.success({message: this.$t('task.assignee.assignSuccess')})
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
findUser(query) {
|
||||
@ -119,7 +119,7 @@ export default {
|
||||
}))
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
clearAllFoundUsers() {
|
||||
|
@ -115,11 +115,11 @@ export default {
|
||||
.then(() => {
|
||||
bubble()
|
||||
if (showNotification) {
|
||||
this.success({message: this.$t('task.label.addSuccess')})
|
||||
this.$message.success({message: this.$t('task.label.addSuccess')})
|
||||
}
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
removeLabel(label) {
|
||||
@ -141,10 +141,10 @@ export default {
|
||||
this.$store.dispatch('tasks/removeLabel', {label: label, taskId: this.taskId})
|
||||
.then(() => {
|
||||
removeFromState()
|
||||
this.success({message: this.$t('task.label.removeSuccess')})
|
||||
this.$message.success({message: this.$t('task.label.removeSuccess')})
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
createAndAddLabel(title) {
|
||||
@ -157,10 +157,10 @@ export default {
|
||||
.then(r => {
|
||||
this.addLabel(r, false)
|
||||
this.labels.push(r)
|
||||
this.success({message: this.$t('task.label.removeSuccess')})
|
||||
this.$message.success({message: this.$t('task.label.removeSuccess')})
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
|
||||
|
@ -81,7 +81,7 @@ export default {
|
||||
}, 2000)
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
.finally(() => {
|
||||
this.saving = false
|
||||
|
@ -102,7 +102,7 @@ export default {
|
||||
}
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
.finally(() => {
|
||||
this.loadingInternal = false
|
||||
|
@ -63,7 +63,7 @@ export default {
|
||||
this.$set(this, 'foundLists', response)
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
clearAll() {
|
||||
|
@ -196,7 +196,7 @@ export default {
|
||||
this.$set(this, 'foundTasks', response)
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
addTaskRelation() {
|
||||
@ -219,7 +219,7 @@ export default {
|
||||
}, 2000)
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
removeTaskRelation() {
|
||||
@ -243,7 +243,7 @@ export default {
|
||||
}, 2000)
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
.finally(() => {
|
||||
this.showDeleteModal = false
|
||||
@ -257,7 +257,7 @@ export default {
|
||||
this.addTaskRelation()
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
relationKindTitle(kind, length) {
|
||||
|
@ -175,7 +175,7 @@ export default {
|
||||
}
|
||||
this.task = t
|
||||
this.$emit('task-updated', t)
|
||||
this.success({
|
||||
this.$message.success({
|
||||
message: this.task.done ?
|
||||
this.$t('task.doneSuccess') :
|
||||
this.$t('task.undoneSuccess'),
|
||||
@ -188,7 +188,7 @@ export default {
|
||||
}])
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
}
|
||||
|
||||
@ -207,7 +207,7 @@ export default {
|
||||
this.$store.dispatch('namespaces/loadNamespacesIfFavoritesDontExist')
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e)
|
||||
this.$message.error(e)
|
||||
})
|
||||
},
|
||||
hideDeferDueDatePopup(e) {
|
||||
|
Reference in New Issue
Block a user