Remove some dev

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-10-09 14:55:45 +02:00
parent 502d6b6afd
commit 68c8017141
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 14 additions and 17 deletions

View file

@ -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);
}
}

View file

@ -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);