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
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
57 changed files with 229 additions and 209 deletions

View file

@ -108,7 +108,7 @@ export default {
this.$store.dispatch('namespaces/loadNamespaces')
this.$router.push({name: 'list.index', params: {listId: r.getListId()}})
})
.catch(e => this.error(e))
.catch(e => this.$message.error(e))
},
},
}

View file

@ -35,10 +35,10 @@ export default {
this.filterService.delete(filter)
.then(() => {
this.$store.dispatch('namespaces/loadNamespaces')
this.success({message: this.$t('filters.delete.success')})
this.$message.success({message: this.$t('filters.delete.success')})
this.$router.push({name: 'namespaces.index'})
})
.catch(e => this.error(e))
.catch(e => this.$message.error(e))
},
},
}

View file

@ -110,19 +110,19 @@ export default {
this.filter = r
this.filters = objectToSnakeCase(this.filter.filters)
})
.catch(e => this.error(e))
.catch(e => this.$message.error(e))
},
save() {
this.filter.filters = this.filters
this.filterService.update(this.filter)
.then(r => {
this.$store.dispatch('namespaces/loadNamespaces')
this.success({message: this.$t('filters.attributes.edit.success')})
this.$message.success({message: this.$t('filters.attributes.edit.success')})
this.filter = r
this.filters = objectToSnakeCase(this.filter.filters)
this.$router.back()
})
.catch(e => this.error(e))
.catch(e => this.$message.error(e))
},
},
}