Fix user activation/deactivation, deletion, and role assignment in the moderation menu
This commit is contained in:
parent
26e455bb4c
commit
695d6b6c50
2 changed files with 9 additions and 9 deletions
|
@ -374,9 +374,9 @@ const users = {
|
|||
return rootState.api.backendInteractor.unsubscribeUser({ id })
|
||||
.then((relationship) => commit('updateUserRelationship', [relationship]))
|
||||
},
|
||||
toggleActivationStatus ({ rootState, commit }, user) {
|
||||
toggleActivationStatus ({ rootState, commit }, { user }) {
|
||||
const api = user.deactivated ? rootState.api.backendInteractor.activateUser : rootState.api.backendInteractor.deactivateUser
|
||||
api(user)
|
||||
api({ user })
|
||||
.then(({ deactivated }) => commit('updateActivationStatus', { user, deactivated }))
|
||||
},
|
||||
registerPushNotifications (store) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue