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