diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-30 17:22:30 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-30 17:22:30 -0500 |
commit | c3f5e60e635ecfaca763a354303613ab9c2092f4 (patch) | |
tree | 8bc2074ec741de916ad5af2b139d514700c6d29c | |
parent | fd467c934dffb6924da52cf6eb57bfc67076137f (diff) | |
download | gitlab-ce-c3f5e60e635ecfaca763a354303613ab9c2092f4.tar.gz |
Set visibility icon correctly
-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> |