From 8fb3870ca0f73f1642696b5a0dc8ad39aa8eb4cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 25 Apr 2022 15:59:35 +0200 Subject: [PATCH] remove dead code --- .../components/StartDate.vue | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/StartDate.vue b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/StartDate.vue index c987150be..b6a55ef39 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/StartDate.vue +++ b/src/Bundle/ChillPersonBundle/Resources/public/vuejs/AccompanyingCourse/components/StartDate.vue @@ -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)) @@ -87,4 +66,4 @@ export default { margin-left: 1rem; } } - \ No newline at end of file +