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
Léo-Paul Géneau
gitlab-ce
Commits
6f859430
Commit
6f859430
authored
May 30, 2017
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change is-expandable to has-subgroups
parent
15c0a6d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
app/assets/javascripts/groups/components/group_item.vue
app/assets/javascripts/groups/components/group_item.vue
+5
-4
app/assets/stylesheets/framework/lists.scss
app/assets/stylesheets/framework/lists.scss
+1
-1
No files found.
app/assets/javascripts/groups/components/group_item.vue
View file @
6f859430
...
...
@@ -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
=
''
;
...
...
app/assets/stylesheets/framework/lists.scss
View file @
6f859430
...
...
@@ -290,7 +290,7 @@ ul.indent-list {
width
:
20px
;
}
>
.group-row
:not
(
.
is-expandable
)
{
>
.group-row
:not
(
.
has-subgroups
)
{
.folder-caret
.fa
{
opacity
:
0
;
}
...
...
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