1
0

feat: don't rethrow same error and handle errors globally

This commit is contained in:
Dominik Pschenitschni
2021-10-09 16:04:19 +02:00
parent 6f51921588
commit 3b940cb56c
71 changed files with 69 additions and 451 deletions

View File

@ -226,9 +226,6 @@ export default {
.then((r) => {
this.linkShares = r
})
.catch((e) => {
this.$message.error(e)
})
},
add(listId) {
const newLinkShare = new LinkShareModel({
@ -247,9 +244,6 @@ export default {
this.$message.success({message: this.$t('list.share.links.createSuccess')})
this.load(listId)
})
.catch((e) => {
this.$message.error(e)
})
},
remove(listId) {
const linkshare = new LinkShareModel({
@ -262,9 +256,6 @@ export default {
this.$message.success({message: this.$t('list.share.links.deleteSuccess')})
this.load(listId)
})
.catch((e) => {
this.$message.error(e)
})
.finally(() => {
this.showDeleteModal = false
})