diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-30 00:06:34 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-30 00:06:34 -0500 |
commit | 6f85943044f1784c97d79ce56315a6e81238d770 (patch) | |
tree | 51f7d3c2eab55be2839a5987393e9a1ddc0eb387 /app | |
parent | 15c0a6d826be63089963175a0ce1fa6fbafd23f8 (diff) | |
download | gitlab-ce-6f85943044f1784c97d79ce56315a6e81238d770.tar.gz |
Change is-expandable to has-subgroups
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/groups/components/group_item.vue | 9 | ||||
-rw-r--r-- | app/assets/stylesheets/framework/lists.scss | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/app/assets/javascripts/groups/components/group_item.vue b/app/assets/javascripts/groups/components/group_item.vue index e7efad877fd..8b2b1c78a5c 100644 --- a/app/assets/javascripts/groups/components/group_item.vue +++ b/app/assets/javascripts/groups/components/group_item.vue @@ -14,7 +14,7 @@ export default { }, methods: { toggleSubGroups(e) { - if (e.target.tagName === 'A' || !this.isExpandable) { + if (e.target.tagName === 'A' || !this.hasSubgroups ) { return false; } @@ -29,12 +29,13 @@ export default { return { 'group-row': true, 'is-open': this.group.isOpen, - 'is-expandable': this.isExpandable, + 'has-subgroups': this.hasSubgroups, 'no-description': !this.group.description, }; }, - isExpandable() { - return Object.keys(this.group.subGroups).length > 0; + hasSubgroups() { + // TODO: Server should send a flag to indicate group will have subgroups + return true; }, fullPath() { let fullPath = ''; diff --git a/app/assets/stylesheets/framework/lists.scss b/app/assets/stylesheets/framework/lists.scss index 0b1e97f67a1..94d48469d2c 100644 --- a/app/assets/stylesheets/framework/lists.scss +++ b/app/assets/stylesheets/framework/lists.scss @@ -290,7 +290,7 @@ ul.indent-list { width: 20px; } - > .group-row:not(.is-expandable) { + > .group-row:not(.has-subgroups) { .folder-caret .fa { opacity: 0; } |