Merge branch 'bug/fixes' into 'master'

Remove some dev

See merge request framasoft/mobilizon!230
This commit is contained in:
Thomas Citharel 2019-10-09 14:56:22 +02:00
commit ef6f08381c
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);