Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
9cce9e73
Commit
9cce9e73
authored
May 31, 2017
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move component visibility validation to parent component
parent
bfa37102
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
app/assets/javascripts/groups/components/group_folder.vue
app/assets/javascripts/groups/components/group_folder.vue
+1
-6
app/assets/javascripts/groups/components/group_item.vue
app/assets/javascripts/groups/components/group_item.vue
+4
-1
No files found.
app/assets/javascripts/groups/components/group_folder.vue
View file @
9cce9e73
...
@@ -10,16 +10,11 @@ export default {
...
@@ -10,16 +10,11 @@ export default {
required
:
false
,
required
:
false
,
},
},
},
},
computed
:
{
hasGroups
()
{
return
Object
.
keys
(
this
.
groups
).
length
>
0
;
},
},
};
};
</
script
>
</
script
>
<
template
>
<
template
>
<ul
class=
"content-list group-list-tree"
v-show=
"hasGroups"
>
<ul
class=
"content-list group-list-tree"
>
<group-item
v-for=
"(group, index) in groups"
:key=
"index"
:group=
"group"
:baseGroup=
"baseGroup"
/>
<group-item
v-for=
"(group, index) in groups"
:key=
"index"
:group=
"group"
:baseGroup=
"baseGroup"
/>
</ul>
</ul>
</
template
>
</
template
>
app/assets/javascripts/groups/components/group_item.vue
View file @
9cce9e73
...
@@ -87,6 +87,9 @@ export default {
...
@@ -87,6 +87,9 @@ export default {
return
fullPath
;
return
fullPath
;
},
},
hasGroups
()
{
return
Object
.
keys
(
this
.
group
.
subGroups
).
length
>
0
;
},
},
},
};
};
</
script
>
</
script
>
...
@@ -161,6 +164,6 @@ export default {
...
@@ -161,6 +164,6 @@ export default {
{{
group
.
description
}}
{{
group
.
description
}}
</div>
</div>
<group-folder
v-if=
"group.isOpen"
:groups=
"group.subGroups"
:baseGroup=
"group"
/>
<group-folder
v-if=
"group.isOpen
&& hasGroups
"
:groups=
"group.subGroups"
:baseGroup=
"group"
/>
</li>
</li>
</
template
>
</
template
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment