WIP Настроено удаление событий и обновление
This commit is contained in:
@@ -153,6 +153,7 @@ export default {
|
|||||||
if (this.showModal === false) {
|
if (this.showModal === false) {
|
||||||
this.setChangeFormState();
|
this.setChangeFormState();
|
||||||
this.clearSelectedEvent();
|
this.clearSelectedEvent();
|
||||||
|
this.fetchEventsData();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -38,8 +38,8 @@ export default {
|
|||||||
closeModal: Function,
|
closeModal: Function,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
deleteEvent() {
|
async deleteEvent() {
|
||||||
fetchWrapper.del(`registry/event/${this.ownerEvent.id}/delete/`);
|
await fetchWrapper.del(`registry/event/${this.ownerEvent.id}/delete/`);
|
||||||
this.closeModal();
|
this.closeModal();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user