From 247fdf61f4f6f42738e6dacc0e7f4c1866b684a9 Mon Sep 17 00:00:00 2001 From: Angelina Filippova Date: Fri, 29 May 2020 22:33:33 +0300 Subject: [PATCH] Humanize tags on User Profile page --- src/views/users/show.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/views/users/show.vue b/src/views/users/show.vue index f0b44cc6..dfc1a163 100644 --- a/src/views/users/show.vue +++ b/src/views/users/show.vue @@ -59,7 +59,7 @@ {{ $t('userProfile.tags') }} - {{ tag }} + {{ humanizeTag(tag) }} @@ -177,6 +177,17 @@ export default { this.resetPasswordDialogOpen = false this.$store.dispatch('RemovePasswordToken') }, + humanizeTag(tag) { + const mapTags = { + 'force_nsfw': 'Force NSFW', + 'strip_media': 'Strip Media', + 'force_unlisted': 'Force Unlisted', + 'sandbox': 'Sandbox', + 'disable_remote_subscription': 'Disable remote subscription', + 'disable_any_subscription': 'Disable any subscription' + } + return mapTags[tag] + }, onTogglePrivate() { this.$store.dispatch('FetchUserProfile', { userId: this.$route.params.id, godmode: this.showPrivate }) },