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

@ -234,7 +234,7 @@ export default {
this.linkShares = r
})
.catch((e) => {
this.error(e)
this.$message.error(e)
})
},
add() {
@ -251,11 +251,11 @@ export default {
this.name = ''
this.password = ''
this.showNewForm = false
this.success({message: this.$t('list.share.links.createSuccess')})
this.$message.success({message: this.$t('list.share.links.createSuccess')})
this.load()
})
.catch((e) => {
this.error(e)
this.$message.error(e)
})
},
remove() {
@ -266,11 +266,11 @@ export default {
this.linkShareService
.delete(linkshare)
.then(() => {
this.success({message: this.$t('list.share.links.deleteSuccess')})
this.$message.success({message: this.$t('list.share.links.deleteSuccess')})
this.load()
})
.catch((e) => {
this.error(e)
this.$message.error(e)
})
.finally(() => {
this.showDeleteModal = false

View File

@ -282,7 +282,7 @@ export default {
)
})
.catch((e) => {
this.error(e)
this.$message.error(e)
})
},
deleteSharable() {
@ -304,10 +304,10 @@ export default {
this.sharables.splice(i, 1)
}
}
this.success({message: this.$t('list.share.userTeam.removeSuccess', {type: this.shareTypeName, sharable: this.sharableName})})
this.$message.success({message: this.$t('list.share.userTeam.removeSuccess', {type: this.shareTypeName, sharable: this.sharableName})})
})
.catch((e) => {
this.error(e)
this.$message.error(e)
})
},
add(admin) {
@ -328,11 +328,11 @@ export default {
this.stuffService
.create(this.stuffModel)
.then(() => {
this.success({message: this.$t('list.share.userTeam.addedSuccess', {type: this.shareTypeName})})
this.$message.success({message: this.$t('list.share.userTeam.addedSuccess', {type: this.shareTypeName})})
this.load()
})
.catch((e) => {
this.error(e)
this.$message.error(e)
})
},
toggleType(sharable) {
@ -365,10 +365,10 @@ export default {
this.$set(this.sharables[i], 'right', r.right)
}
}
this.success({message: this.$t('list.share.userTeam.updatedSuccess', {type: this.shareTypeName})})
this.$message.success({message: this.$t('list.share.userTeam.updatedSuccess', {type: this.shareTypeName})})
})
.catch((e) => {
this.error(e)
this.$message.error(e)
})
},
find(query) {
@ -383,7 +383,7 @@ export default {
this.$set(this, 'found', response)
})
.catch((e) => {
this.error(e)
this.$message.error(e)
})
},
clearAll() {