Commit 6f859430 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Change is-expandable to has-subgroups

parent 15c0a6d8
...@@ -14,7 +14,7 @@ export default { ...@@ -14,7 +14,7 @@ export default {
}, },
methods: { methods: {
toggleSubGroups(e) { toggleSubGroups(e) {
if (e.target.tagName === 'A' || !this.isExpandable) { if (e.target.tagName === 'A' || !this.hasSubgroups ) {
return false; return false;
} }
...@@ -29,12 +29,13 @@ export default { ...@@ -29,12 +29,13 @@ export default {
return { return {
'group-row': true, 'group-row': true,
'is-open': this.group.isOpen, 'is-open': this.group.isOpen,
'is-expandable': this.isExpandable, 'has-subgroups': this.hasSubgroups,
'no-description': !this.group.description, 'no-description': !this.group.description,
}; };
}, },
isExpandable() { hasSubgroups() {
return Object.keys(this.group.subGroups).length > 0; // TODO: Server should send a flag to indicate group will have subgroups
return true;
}, },
fullPath() { fullPath() {
let fullPath = ''; let fullPath = '';
......
...@@ -290,7 +290,7 @@ ul.indent-list { ...@@ -290,7 +290,7 @@ ul.indent-list {
width: 20px; width: 20px;
} }
> .group-row:not(.is-expandable) { > .group-row:not(.has-subgroups) {
.folder-caret .fa { .folder-caret .fa {
opacity: 0; opacity: 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment