Merge branch 'fix-event-creation-on-update' into 'master'
Prevent creating a new event when editing one Closes #381 See merge request framasoft/mobilizon!595
This commit is contained in:
commit
6a1d74d07e
|
@ -517,9 +517,11 @@ export default class EditEvent extends Vue {
|
|||
createOrUpdateDraft(e: Event): void {
|
||||
e.preventDefault();
|
||||
if (this.validateForm()) {
|
||||
if (this.eventId && !this.isDuplicate) this.updateEvent();
|
||||
|
||||
this.createEvent();
|
||||
if (this.eventId && !this.isDuplicate) {
|
||||
this.updateEvent();
|
||||
} else {
|
||||
this.createEvent();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue