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

@ -93,16 +93,16 @@ export default {
.then(r => {
this.avatarProvider = r.avatarProvider
})
.catch(e => this.error(e))
.catch(e => this.$message.error(e))
},
updateAvatarStatus() {
const avatarStatus = new AvatarModel({avatarProvider: this.avatarProvider})
this.avatarService.update(avatarStatus)
.then(() => {
this.success({message: this.$t('user.settings.avatar.statusUpdateSuccess')})
this.$message.success({message: this.$t('user.settings.avatar.statusUpdateSuccess')})
this.$store.commit('auth/reloadAvatar')
})
.catch(e => this.error(e))
.catch(e => this.$message.error(e))
},
uploadAvatar() {
this.loading = true
@ -112,10 +112,10 @@ export default {
canvas.toBlob(blob => {
this.avatarService.create(blob)
.then(() => {
this.success({message: this.$t('user.settings.avatar.setSuccess')})
this.$message.success({message: this.$t('user.settings.avatar.setSuccess')})
this.$store.commit('auth/reloadAvatar')
})
.catch(e => this.error(e))
.catch(e => this.$message.error(e))
.finally(() => {
this.loading = false
this.isCropAvatar = false

View File

@ -61,10 +61,10 @@ export default {
this.dataExportService.request(this.password)
.then(() => {
this.success({message: this.$t('user.export.success')})
this.$message.success({message: this.$t('user.export.success')})
this.password = ''
})
.catch(e => this.error(e))
.catch(e => this.$message.error(e))
},
},
}

View File

@ -113,10 +113,10 @@ export default {
this.accountDeleteService.request(this.password)
.then(() => {
this.success({message: this.$t('user.deletion.requestSuccess')})
this.$message.success({message: this.$t('user.deletion.requestSuccess')})
this.password = ''
})
.catch(e => this.error(e))
.catch(e => this.$message.error(e))
},
cancelDeletion() {
if (this.password === '') {
@ -127,11 +127,11 @@ export default {
this.accountDeleteService.cancel(this.password)
.then(() => {
this.success({message: this.$t('user.deletion.scheduledCancelSuccess')})
this.$message.success({message: this.$t('user.deletion.scheduledCancelSuccess')})
this.$store.dispatch('auth/refreshUserInfo')
this.password = ''
})
.catch(e => this.error(e))
.catch(e => this.$message.error(e))
},
},
}