Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
admin-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kPherox
admin-fe
Commits
247fdf61
Commit
247fdf61
authored
4 years ago
by
Angelina Filippova
Browse files
Options
Downloads
Patches
Plain Diff
Humanize tags on User Profile page
parent
d92d0188
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/users/show.vue
+12
-1
12 additions, 1 deletion
src/views/users/show.vue
with
12 additions
and
1 deletion
src/views/users/show.vue
+
12
−
1
View file @
247fdf61
...
...
@@ -59,7 +59,7 @@
<tr
class=
"el-table__row"
>
<td>
{{
$t
(
'
userProfile.tags
'
)
}}
</td>
<td>
<el-tag
v-for=
"tag in user.tags"
:key=
"tag"
class=
"user-profile-tag"
>
{{
tag
}}
</el-tag>
<el-tag
v-for=
"tag in user.tags"
:key=
"tag"
class=
"user-profile-tag"
>
{{
humanizeTag
(
tag
)
}}
</el-tag>
<span
v-if=
"user.tags.length === 0"
>
—
</span>
</td>
</tr>
...
...
@@ -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
})
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment