add basic deletes support that works with masto WS

This commit is contained in:
Shpuld Shpuldson 2020-09-06 15:28:09 +03:00
parent a73b09c732
commit 40ca0b394e
7 changed files with 57 additions and 2 deletions

View file

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