diff options
Diffstat (limited to 'src/modules/announcements.js')
| -rw-r--r-- | src/modules/announcements.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/announcements.js b/src/modules/announcements.js index 76cea154..ddc51c33 100644 --- a/src/modules/announcements.js +++ b/src/modules/announcements.js @@ -59,6 +59,12 @@ const announcements = { .then(() => { return store.dispatch('fetchAnnouncements') }) + }, + deleteAnnouncement (store, id) { + return store.rootState.api.backendInteractor.deleteAnnouncement({ id }) + .then(() => { + return store.dispatch('fetchAnnouncements') + }) } } } |
