display of correct message for 403 error fixed + translation

This commit is contained in:
2022-02-16 14:25:34 +01:00
parent a6504366b4
commit cdf0bb30c9
3 changed files with 12 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ export default {
this.$store.dispatch('toggleIntensity', value)
.catch(({name, violations}) => {
if (name === 'ValidationException' || name === 'AccessException') {
violations.forEach((violation) => this.$toast.open({message: violation}));
violations.forEach((violation) => this.$toast.open({message: this.$t(violation)}));
} else {
this.$toast.open({message: 'An error occurred'})
}