replace setActivationStatus api with new one
This commit is contained in:
parent
b739edb509
commit
506822bed0
3 changed files with 11 additions and 16 deletions
|
@ -73,7 +73,7 @@ const ModerationTools = {
|
|||
toggleActivationStatus () {
|
||||
const store = this.$store
|
||||
const status = !!this.user.deactivated
|
||||
store.state.api.backendInteractor.setActivationStatus(this.user, status).then(response => {
|
||||
store.state.api.backendInteractor.toggleActivationStatus(this.user).then(response => {
|
||||
if (!response.ok) { return }
|
||||
store.commit('updateActivationStatus', { user: this.user, status: status })
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue