diff options
| author | Henry Jameson <me@hjkos.com> | 2019-12-26 12:47:51 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-12-26 12:47:51 +0200 |
| commit | b619477573d7f0cef985c4ce6400760921c3b345 (patch) | |
| tree | c12fb128cd7becc567ae2bd0fc7f24e9cd98e122 /src/components/moderation_tools | |
| parent | 585702b1cedf25547ff5faf0170263088e5484a6 (diff) | |
| parent | f7029a27eb9def00c80929b2c2cfb1d22d29bbfe (diff) | |
Merge remote-tracking branch 'upstream/develop' into streaming
* upstream/develop: (51 commits)
toggle_activation api is also deprecated
use vuex action
refactor toggleActivationStatus
replace setActivationStatus api with new one
use flex for stickers
i18n/update-ja_easy
Use a centralized fallback for missing values and use instance.federating instead of instance.federation.enabled
Add fallback in case BE does not report federating status in nodeinfo
The value we are looking for is federationPolicy.enabled, not federationPolicy.federating
Logic should be to hide TWKN if not federating OR if instance is not public
Finally trust eslint
More lint
More lint
Lint
mfa: removed unused code
increase icon width a little bit in the nav panel
add icons to nav panel
Revert "Merge branch 'revert-96cab6d8' into 'develop'"
Support "native" captcha
Revert "Merge branch 'oauth-extra-scopes' into 'develop'"
...
Diffstat (limited to 'src/components/moderation_tools')
| -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 5bb76497..757166ed 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({ user: this.user, status }).then(response => { - if (!response.ok) { return } - store.commit('updateActivationStatus', { user: this.user, status: status }) - }) + this.$store.dispatch('toggleActivationStatus', { user: this.user }) }, deleteUserDialog (show) { this.showDeleteUserDialog = show |
