diff --git a/src/views/reports/components/ModerateUserDropdown.vue b/src/views/reports/components/ModerateUserDropdown.vue
index cf3fb1ad..cf01971a 100644
--- a/src/views/reports/components/ModerateUserDropdown.vue
+++ b/src/views/reports/components/ModerateUserDropdown.vue
@@ -15,6 +15,7 @@
{{ $t('users.deleteAccount') }}
@@ -22,37 +23,47 @@
{{ $t('users.stripMedia') }}
{{ $t('users.forceUnlisted') }}
{{ $t('users.sandbox') }}
{{ $t('users.disableRemoteSubscription') }}
{{ $t('users.disableAnySubscription') }}
+
+ {{ $t('users.enableTagPolicy') }}
+
@@ -71,11 +82,34 @@ export default {
}
},
computed: {
+ tagPolicyEnabled() {
+ return this.$store.state.users.mrfPolicies.includes('Pleroma.Web.ActivityPub.MRF.TagPolicy')
+ },
tags() {
return this.account.tags || []
}
},
methods: {
+ enableTagPolicy() {
+ this.$confirm(
+ this.$t('users.confirmEnablingTagPolicy'),
+ {
+ confirmButtonText: 'Yes',
+ cancelButtonText: 'Cancel',
+ type: 'warning'
+ }).then(() => {
+ this.$message({
+ type: 'success',
+ message: this.$t('users.enableTagPolicySuccessMessage')
+ })
+ this.$store.dispatch('EnableTagPolicy')
+ }).catch(() => {
+ this.$message({
+ type: 'info',
+ message: 'Canceled'
+ })
+ })
+ },
handleDeactivation(user) {
user.deactivated
? this.$store.dispatch('ActivateUserFromReports', { user, reportId: this.reportId })
diff --git a/src/views/reports/index.vue b/src/views/reports/index.vue
index 840a7531..a5ab431a 100644
--- a/src/views/reports/index.vue
+++ b/src/views/reports/index.vue
@@ -41,6 +41,7 @@ export default {
mounted() {
this.$store.dispatch('GetNodeInfo')
this.$store.dispatch('NeedReboot')
+ this.$store.dispatch('FetchTagPolicySetting')
this.$store.dispatch('FetchReports', 1)
}
}