diff --git a/src/lang/en.js b/src/lang/en.js
index 656d06ed..7bd4ea2a 100644
--- a/src/lang/en.js
+++ b/src/lang/en.js
@@ -282,7 +282,6 @@ export default {
enableTagPolicy: 'Enable MRF TagPolicy to manage user tags',
confirmEnablingTagPolicy: 'Are you sure you want to add TagPolicy to the list of enabled MRF policies?',
enableTagPolicySuccessMessage: 'MRF TagPolicy was enabled',
- createCustomTag: 'Create custom tag and add it to user',
customTags: 'Custom Tags',
defaultTags: 'Default Tags'
},
diff --git a/src/views/users/components/ModerationDropdown.vue b/src/views/users/components/ModerationDropdown.vue
index a54f47ea..3f5e0eb4 100644
--- a/src/views/users/components/ModerationDropdown.vue
+++ b/src/views/users/components/ModerationDropdown.vue
@@ -67,80 +67,6 @@
@click.native="handleConfirmationResend(user)">
{{ $t('users.resendConfirmation') }}
-
+ :value="name"
+ :class="{ 'active-tag': user.tags.includes(name) }"
+ @click.native="toggleTag(user, name)">
+ {{ value }}
+
+
+ :class="{ 'active-tag': user.tags.includes(item) }"
+ class="capitalize"
+ @click.native="toggleTag(user, item)">
+ {{ item }}
+
+
!Object.keys(this.mapTags).includes(tag))
},
defaultTags() {
- return Object.keys(this.mapTags)
- .filter(tag => this.$store.state.users.tags.includes(tag))
+ const tagsByType = this.user.local ? Object.keys(this.mapTags) : Object.keys(this.mapRemoteTags)
+ return tagsByType.filter(tag => this.$store.state.users.tags.includes(tag))
.reduce((acc, el) => {
- acc[el] = this.mapTags[el]
+ if (this.user.local) {
+ acc[el] = this.mapTags[el]
+ } else {
+ acc[el] = this.mapRemoteTags[el]
+ }
return acc
}, {})
},
isDesktop() {
return this.$store.state.app.device === 'desktop'
},
+ mapRemoteTags() {
+ return {
+ 'mrf_tag:media-force-nsfw': 'NSFW',
+ 'mrf_tag:media-strip': 'Strip Media',
+ 'mrf_tag:force-unlisted': 'Unlisted',
+ 'mrf_tag:sandbox': 'Sandbox',
+ 'mrf_tag:verified': 'Verified'
+ }
+ },
mapTags() {
return {
'mrf_tag:media-force-nsfw': 'NSFW',
@@ -260,18 +208,6 @@ export default {
}
},
methods: {
- addCustomTag() {
- this.$store.dispatch('AddTag', {
- users: [this.customTagUser],
- tag: this.customTagForm.name,
- _userId: this.customTagUser.id,
- _statusId: this.statusId
- })
- this.createCustomTagDialogOpen = false
- },
- closeCustomTagDialog() {
- this.createCustomTagDialogOpen = false
- },
disableMfa(nickname) {
this.$store.dispatch('DisableMfa', nickname)
},
@@ -377,14 +313,6 @@ export default {
.capitalize {
text-transform: capitalize;
}
- .el-form--inline {
- .el-form-item.add-custom-tag-button {
- margin-right: 0;
- }
- .el-form-item.close-custom-tag-button {
- margin-right: 8px;
- }
- }
.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided.actor-type-dropdown:before {
margin: 0 0;
height: 0;
@@ -433,22 +361,6 @@ export default {
display: flex;
justify-content: space-between;
}
- .moderate-tags {
- .el-collapse-item__content {
- padding-bottom: 0px;
- }
- .el-collapse-item__header {
- height: 23px;
- margin-top: 4px;
- padding-left: 15px;
- font-weight: 400;
- color: #606266;
- border-bottom: none;
- }
- .el-collapse-item__wrap {
- border-bottom: none;
- }
- }
.moderation-dropdown-menu {
width: 350px;
.el-dropdown-menu--small .el-dropdown-menu__item.el-dropdown-menu__item--divided {
diff --git a/src/views/users/components/MultipleUsersMenu.vue b/src/views/users/components/MultipleUsersMenu.vue
index 081b91c2..bdf65006 100644
--- a/src/views/users/components/MultipleUsersMenu.vue
+++ b/src/views/users/components/MultipleUsersMenu.vue
@@ -139,12 +139,6 @@
-
- {{ $t('users.createCustomTag') }}
-