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

@ -36,10 +36,10 @@ export default {
.then(r => {
this.$store.commit('currentList', r)
this.$store.commit('namespaces/setListInNamespaceById', r)
this.success({message: this.$t('list.archive.success')})
this.$message.success({message: this.$t('list.archive.success')})
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
.finally(() => {
this.$router.back()

View File

@ -132,7 +132,7 @@ export default {
})
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
}, 300)
},
@ -146,10 +146,10 @@ export default {
.then(l => {
this.$store.commit(CURRENT_LIST, l)
this.$store.commit('namespaces/setListInNamespaceById', l)
this.success({message: this.$t('list.background.success')})
this.$message.success({message: this.$t('list.background.success')})
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
},
uploadBackground() {
@ -161,10 +161,10 @@ export default {
.then(l => {
this.$store.commit(CURRENT_LIST, l)
this.$store.commit('namespaces/setListInNamespaceById', l)
this.success({message: this.$t('list.background.success')})
this.$message.success({message: this.$t('list.background.success')})
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
},
removeBackground() {
@ -172,11 +172,11 @@ export default {
.then(l => {
this.$store.commit(CURRENT_LIST, l)
this.$store.commit('namespaces/setListInNamespaceById', l)
this.success({message: this.$t('list.background.removeSuccess')})
this.$message.success({message: this.$t('list.background.removeSuccess')})
this.$router.back()
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
},
},

View File

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

View File

@ -48,11 +48,11 @@ export default {
.then(r => {
this.$store.commit('namespaces/addListToNamespace', r.list)
this.$store.commit('lists/setList', r.list)
this.success({message: this.$t('list.duplicate.success')})
this.$message.success({message: this.$t('list.duplicate.success')})
this.$router.push({name: 'list.index', params: {listId: r.list.id}})
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
},
},

View File

@ -109,17 +109,17 @@ export default {
this.setTitle(this.$t('list.edit.title', {list: this.list.title}))
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
},
save() {
this.$store.dispatch('lists/updateList', this.list)
.then(() => {
this.success({message: this.$t('list.edit.success')})
this.$message.success({message: this.$t('list.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.$t('list.share.title', {list: this.list.title}))
})
.catch(e => {
this.error(e)
this.$message.error(e)
})
},
},