Commit 72c9454e authored by Alfredo Sumaran's avatar Alfredo Sumaran

Stop click event is group has no subgroups

parent b3666a78
......@@ -14,12 +14,10 @@ export default {
},
methods: {
toggleSubGroups(e) {
if (e.target.tagName === 'A') {
if (e.target.tagName === 'A' || !this.isExpandable) {
return false;
}
// TODO: Do not trigger if group will not have subgroups
return eventHub.$emit('toggleSubGroups', this.group);
},
},
......
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