Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-05-31 01:22:30 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2017-05-31 01:22:30 +0300
commitc3f5e60e635ecfaca763a354303613ab9c2092f4 (patch)
tree8bc2074ec741de916ad5af2b139d514700c6d29c /app/assets/javascripts/groups
parentfd467c934dffb6924da52cf6eb57bfc67076137f (diff)
Set visibility icon correctly
Diffstat (limited to 'app/assets/javascripts/groups')
-rw-r--r--app/assets/javascripts/groups/components/group_item.vue10
1 files changed, 9 insertions, 1 deletions
diff --git a/app/assets/javascripts/groups/components/group_item.vue b/app/assets/javascripts/groups/components/group_item.vue
index dbda3c6c365..50bdc27a7a6 100644
--- a/app/assets/javascripts/groups/components/group_item.vue
+++ b/app/assets/javascripts/groups/components/group_item.vue
@@ -56,6 +56,14 @@ export default {
'no-description': !this.group.description,
};
},
+ visibilityIcon() {
+ return {
+ fa: true,
+ 'fa-globe': this.group.visibility === 'public',
+ 'fa-shield': this.group.visibility === 'internal',
+ 'fa-lock': this.group.visibility === 'private',
+ };
+ },
fullPath() {
let fullPath = '';
@@ -116,7 +124,7 @@ export default {
{{group.numberUsers}}
</span>
<span class="group-visibility">
- <i aria-hidden="true" class="fa fa-globe"></i>
+ <i aria-hidden="true" :class="visibilityIcon"></i>
</span>
</div>