提交 6f859430 编写于 作者: A Alfredo Sumaran

Change is-expandable to has-subgroups

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册