Change is-expandable to has-subgroups
This commit is contained in:
parent
15c0a6d826
commit
6f85943044
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue