remove dead code

This commit is contained in:
Julien Fastré 2022-04-25 15:59:35 +02:00
parent 41ff21ee23
commit 8fb3870ca0

View File

@ -26,27 +26,6 @@ export default {
lastRecordedDate: null
}
},
methods: {
updateStartDate(e) {
this.lastRecordedDate = e.target.value;
setTimeout(() => {
console.log('timeout finished')
const date = e.target.value
if (this.lastRecordedDate === date) {
console.log('last recorded', this.lastRecordedDate, 'value', e.target.value)
this.$store.dispatch('updateStartDate', date)
.catch(({name, violations}) => {
if (name === 'ValidationException' || name === 'AccessException') {
violations.forEach((violation) => this.$toast.open({message: violation}));
} else {
this.$toast.open({message: 'An error occurred'})
}
})
}
}, 3000)
},
},
computed: {
...mapState({
startDate: state => dateToISO(ISOToDatetime(state.accompanyingCourse.openingDate.datetime))