Implement deleting announcement
This commit is contained in:
parent
efb76dcb03
commit
e877fedb0e
4 changed files with 42 additions and 1 deletions
|
|
@ -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')
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue