remove success toast for parcours startdate + take empty string values into account for action dates

This commit is contained in:
2022-04-20 13:58:45 +02:00
parent 0ce23230da
commit ad1e7b576c
2 changed files with 4 additions and 4 deletions

View File

@@ -28,14 +28,13 @@ export default {
const date = e.target.previousSibling.value;
this.$store.dispatch('updateStartDate', date)
.then(this.$toast.open({type: 'success', message: this.$t('startdate.update')}))
.catch(({name, violations}) => {
if (name === 'ValidationException' || name === 'AccessException') {
violations.forEach((violation) => this.$toast.open({message: violation}));
} else {
this.$toast.open({message: 'An error occurred'})
}
});
})
},
},
computed: {