diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-31 19:45:05 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2017-05-31 19:45:05 -0500 |
commit | abdd18922bb99e4d85266ff6e9995599466e3ca4 (patch) | |
tree | 6e3bba1f3713b9c6d17f2a921c619b4eb0142f2a | |
parent | a161384b91e6f06f2afa41f9e0038cc3129f12b1 (diff) | |
download | gitlab-ce-abdd18922bb99e4d85266ff6e9995599466e3ca4.tar.gz |
Restore accidentally deleted code
-rw-r--r-- | app/assets/javascripts/groups/components/group_item.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/groups/components/group_item.vue b/app/assets/javascripts/groups/components/group_item.vue index 3c92d6fd1eb..769ef05add6 100644 --- a/app/assets/javascripts/groups/components/group_item.vue +++ b/app/assets/javascripts/groups/components/group_item.vue @@ -84,6 +84,9 @@ export default { return fullPath; }, + hasGroups() { + return Object.keys(this.group.subGroups).length > 0; + }, }, }; </script> @@ -158,6 +161,6 @@ export default { {{group.description}} </div> - <group-folder v-if="group.isOpen && group.hasSubgroups" :groups="group.subGroups" :baseGroup="group" /> + <group-folder v-if="group.isOpen && hasGroups" :groups="group.subGroups" :baseGroup="group" /> </li> </template> |