WIP Настроено удаление событий и обновление

This commit is contained in:
Daria Golova
2022-11-16 13:27:01 +03:00
parent ca1b452cfa
commit 0ab178bb70
2 changed files with 3 additions and 2 deletions

View File

@@ -153,6 +153,7 @@ export default {
if (this.showModal === false) { if (this.showModal === false) {
this.setChangeFormState(); this.setChangeFormState();
this.clearSelectedEvent(); this.clearSelectedEvent();
this.fetchEventsData();
} }
}, },
}, },

View File

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