From 8b4fe37a607be03875378cbb898869fb52b088d7 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Thu, 27 Aug 2020 01:50:49 +0300 Subject: [PATCH] Disable tags actions in multiple moderation dropdown when TagPolicy is disabled --- .../users/components/MultipleUsersMenu.vue | 43 ++++++++++--------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/src/views/users/components/MultipleUsersMenu.vue b/src/views/users/components/MultipleUsersMenu.vue index 976d2913..ed3d6b85 100644 --- a/src/views/users/components/MultipleUsersMenu.vue +++ b/src/views/users/components/MultipleUsersMenu.vue @@ -61,79 +61,79 @@ @click.native="requirePasswordReset"> {{ $t('users.requirePasswordReset') }} - +
{{ $t('users.forceNsfw') }} - + {{ $t('users.apply') }} - + {{ $t('users.remove') }}
- +
{{ $t('users.stripMedia') }} - + {{ $t('users.apply') }} - + {{ $t('users.remove') }}
- +
{{ $t('users.forceUnlisted') }} - + {{ $t('users.apply') }} - + {{ $t('users.remove') }}
- +
{{ $t('users.sandbox') }} - + {{ $t('users.apply') }} - + {{ $t('users.remove') }}
- +
{{ $t('users.disableRemoteSubscriptionForMultiple') }} - + {{ $t('users.apply') }} - + {{ $t('users.remove') }}
- +
{{ $t('users.disableAnySubscriptionForMultiple') }} - + {{ $t('users.apply') }} - + {{ $t('users.remove') }} @@ -159,11 +159,14 @@ export default { } }, computed: { + isDesktop() { + return this.$store.state.app.device === 'desktop' + }, showDropdownForMultipleUsers() { return this.$props.selectedUsers.length > 0 }, - isDesktop() { - return this.$store.state.app.device === 'desktop' + tagPolicyDisabled() { + return this.$store.state.users.tagPolicyDisabled } }, methods: {