add basic deletes support that works with masto WS
This commit is contained in:
parent
a73b09c732
commit
40ca0b394e
7 changed files with 57 additions and 2 deletions
|
@ -608,6 +608,10 @@ const statuses = {
|
|||
commit('setDeleted', { status })
|
||||
apiService.deleteStatus({ id: status.id, credentials: rootState.users.currentUser.credentials })
|
||||
},
|
||||
deleteStatusById ({ rootState, commit }, id) {
|
||||
const status = rootState.statuses.allStatusesObject[id]
|
||||
commit('setDeleted', { status })
|
||||
},
|
||||
markStatusesAsDeleted ({ commit }, condition) {
|
||||
commit('setManyDeleted', condition)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue