mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
remove success toast for parcours startdate + take empty string values into account for action dates
This commit is contained in:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user