From 68c8017141f4cc7475c90131336aec8fb5f24381 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 9 Oct 2019 14:55:45 +0200 Subject: [PATCH] Remove some dev Signed-off-by: Thomas Citharel --- js/src/components/Event/DateTimePicker.vue | 1 - js/src/views/Event/Edit.vue | 30 ++++++++++------------ 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/js/src/components/Event/DateTimePicker.vue b/js/src/components/Event/DateTimePicker.vue index 69052a9d1..20fefbe63 100644 --- a/js/src/components/Event/DateTimePicker.vue +++ b/js/src/components/Event/DateTimePicker.vue @@ -76,7 +76,6 @@ export default class DateTimePicker extends Vue { * * @type {Date} */ - console.log('updated this.date with', this.date); this.$emit('input', this.date); } } diff --git a/js/src/views/Event/Edit.vue b/js/src/views/Event/Edit.vue index 3d5ffe522..42c52c77f 100644 --- a/js/src/views/Event/Edit.vue +++ b/js/src/views/Event/Edit.vue @@ -362,22 +362,21 @@ export default class EditEvent extends Vue { } async createEvent() { - console.log(this.buildVariables()); - // try { - // const { data } = await this.$apollo.mutate({ - // mutation: CREATE_EVENT, - // variables: this.buildVariables(), - // update: (store, { data: { createEvent } }) => this.postCreateOrUpdate(store, createEvent), - // refetchQueries: ({ data: { createEvent } }) => this.postRefetchQueries(createEvent), - // }); + try { + const { data } = await this.$apollo.mutate({ + mutation: CREATE_EVENT, + variables: this.buildVariables(), + update: (store, { data: { createEvent } }) => this.postCreateOrUpdate(store, createEvent), + refetchQueries: ({ data: { createEvent } }) => this.postRefetchQueries(createEvent), + }); - // await this.$router.push({ - // name: 'Event', - // params: { uuid: data.createEvent.uuid }, - // }); - // } catch (err) { - // console.error(err); - // } + await this.$router.push({ + name: 'Event', + params: { uuid: data.createEvent.uuid }, + }); + } catch (err) { + console.error(err); + } } async updateEvent() { @@ -532,7 +531,6 @@ export default class EditEvent extends Vue { @Watch('beginsOn') onBeginsOnChanged(beginsOn) { - console.log('beginsOnWatcher', beginsOn); if (!this.event.endsOn) return; const dateBeginsOn = new Date(beginsOn); const dateEndsOn = new Date(this.event.endsOn);