replace setActivationStatus api with new one

This commit is contained in:
taehoon 2019-11-18 20:29:12 -05:00
parent b739edb509
commit 506822bed0
3 changed files with 11 additions and 16 deletions

View file

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