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

Change is-expandable to has-subgroups

parent 15c0a6d8
......@@ -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 = '';
......
......@@ -290,7 +290,7 @@ ul.indent-list {
width: 20px;
}
> .group-row:not(.is-expandable) {
> .group-row:not(.has-subgroups) {
.folder-caret .fa {
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