diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-12-18 00:51:41 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-12-18 00:51:41 +0000 |
| commit | f7029a27eb9def00c80929b2c2cfb1d22d29bbfe (patch) | |
| tree | 5b4c4940b670921e36f574e61167144dec9908c8 /src/components/moderation_tools/moderation_tools.js | |
| parent | b739edb5090a81f477cb78081f40504a3e341abd (diff) | |
| parent | 4e4c4af422c400d016e4605f8bcf699f7154a8b4 (diff) | |
Merge branch '716' into 'develop'
Fix "Deactivation of remote accounts from frontend does not work"
Closes #716
See merge request pleroma/pleroma-fe!1006
Diffstat (limited to 'src/components/moderation_tools/moderation_tools.js')
| -rw-r--r-- | src/components/moderation_tools/moderation_tools.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/moderation_tools/moderation_tools.js b/src/components/moderation_tools/moderation_tools.js index 8aadc8c5..02b92fef 100644 --- a/src/components/moderation_tools/moderation_tools.js +++ b/src/components/moderation_tools/moderation_tools.js @@ -71,12 +71,7 @@ const ModerationTools = { } }, toggleActivationStatus () { - const store = this.$store - const status = !!this.user.deactivated - store.state.api.backendInteractor.setActivationStatus(this.user, status).then(response => { - if (!response.ok) { return } - store.commit('updateActivationStatus', { user: this.user, status: status }) - }) + this.$store.dispatch('toggleActivationStatus', this.user) }, deleteUserDialog (show) { this.showDeleteUserDialog = show |
