mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
remove dead code
This commit is contained in:
parent
41ff21ee23
commit
8fb3870ca0
@ -26,27 +26,6 @@ export default {
|
|||||||
lastRecordedDate: null
|
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: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
startDate: state => dateToISO(ISOToDatetime(state.accompanyingCourse.openingDate.datetime))
|
startDate: state => dateToISO(ISOToDatetime(state.accompanyingCourse.openingDate.datetime))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user