Merge branch 'bug/fixes' into 'master'
Remove some dev See merge request framasoft/mobilizon!230
This commit is contained in:
commit
54457c3666
|
@ -76,7 +76,6 @@ export default class DateTimePicker extends Vue {
|
||||||
*
|
*
|
||||||
* @type {Date}
|
* @type {Date}
|
||||||
*/
|
*/
|
||||||
console.log('updated this.date with', this.date);
|
|
||||||
this.$emit('input', this.date);
|
this.$emit('input', this.date);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -362,22 +362,21 @@ export default class EditEvent extends Vue {
|
||||||
}
|
}
|
||||||
|
|
||||||
async createEvent() {
|
async createEvent() {
|
||||||
console.log(this.buildVariables());
|
try {
|
||||||
// try {
|
const { data } = await this.$apollo.mutate({
|
||||||
// const { data } = await this.$apollo.mutate({
|
mutation: CREATE_EVENT,
|
||||||
// mutation: CREATE_EVENT,
|
variables: this.buildVariables(),
|
||||||
// variables: this.buildVariables(),
|
update: (store, { data: { createEvent } }) => this.postCreateOrUpdate(store, createEvent),
|
||||||
// update: (store, { data: { createEvent } }) => this.postCreateOrUpdate(store, createEvent),
|
refetchQueries: ({ data: { createEvent } }) => this.postRefetchQueries(createEvent),
|
||||||
// refetchQueries: ({ data: { createEvent } }) => this.postRefetchQueries(createEvent),
|
});
|
||||||
// });
|
|
||||||
|
|
||||||
// await this.$router.push({
|
await this.$router.push({
|
||||||
// name: 'Event',
|
name: 'Event',
|
||||||
// params: { uuid: data.createEvent.uuid },
|
params: { uuid: data.createEvent.uuid },
|
||||||
// });
|
});
|
||||||
// } catch (err) {
|
} catch (err) {
|
||||||
// console.error(err);
|
console.error(err);
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async updateEvent() {
|
async updateEvent() {
|
||||||
|
@ -532,7 +531,6 @@ export default class EditEvent extends Vue {
|
||||||
|
|
||||||
@Watch('beginsOn')
|
@Watch('beginsOn')
|
||||||
onBeginsOnChanged(beginsOn) {
|
onBeginsOnChanged(beginsOn) {
|
||||||
console.log('beginsOnWatcher', beginsOn);
|
|
||||||
if (!this.event.endsOn) return;
|
if (!this.event.endsOn) return;
|
||||||
const dateBeginsOn = new Date(beginsOn);
|
const dateBeginsOn = new Date(beginsOn);
|
||||||
const dateEndsOn = new Date(this.event.endsOn);
|
const dateEndsOn = new Date(this.event.endsOn);
|
||||||
|
|
Loading…
Reference in a new issue