diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-31 01:22:30 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-31 01:22:30 +0300 |
commit | c3f5e60e635ecfaca763a354303613ab9c2092f4 (patch) | |
tree | 8bc2074ec741de916ad5af2b139d514700c6d29c /app/assets/javascripts/groups | |
parent | fd467c934dffb6924da52cf6eb57bfc67076137f (diff) |
Set visibility icon correctly
Diffstat (limited to 'app/assets/javascripts/groups')
-rw-r--r-- | app/assets/javascripts/groups/components/group_item.vue | 10 |
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> |