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

@ -78,11 +78,11 @@ export default {
.create(this.namespace)
.then((r) => {
this.$store.commit('namespaces/addNamespace', r)
this.success({message: this.$t('namespace.create.success') })
this.$message.success({message: this.$t('namespace.create.success') })
this.$router.back()
})
.catch((e) => {
this.error(e)
this.$message.error(e)
})
},
},

View File

@ -39,10 +39,10 @@ export default {
this.namespaceService.update(this.namespace)
.then(r => {
this.$store.commit('namespaces/setNamespaceById', r)
this.success({message: this.$t('namespace.archive.success')})
this.$message.success({message: this.$t('namespace.archive.success')})
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
.finally(() => {
this.$router.back()

View File

@ -36,11 +36,11 @@ export default {
this.$store.dispatch('namespaces/deleteNamespace', namespace)
.then(() => {
this.success({message: this.$t('namespace.delete.success')})
this.$message.success({message: this.$t('namespace.delete.success')})
this.$router.push({name: 'home'})
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
},
},

View File

@ -119,7 +119,7 @@ export default {
this.setTitle(this.title)
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
},
save() {
@ -127,11 +127,11 @@ export default {
.then(r => {
// Update the namespace in the parent
this.$store.commit('namespaces/setNamespaceById', r)
this.success({message: this.$t('namespace.edit.success')})
this.$message.success({message: this.$t('namespace.edit.success')})
this.$router.back()
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
},
},

View File

@ -70,7 +70,7 @@ export default {
this.setTitle(this.title)
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
},
},