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
109dc41f
Commit
109dc41f
authored
Oct 17, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds folder icons
parent
de990812
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
app/assets/javascripts/environments/components/environment_item.js.es6
...vascripts/environments/components/environment_item.js.es6
+5
-2
app/views/projects/environments/components/_environment.html.haml
...s/projects/environments/components/_environment.html.haml
+6
-5
No files found.
app/assets/javascripts/environments/components/environment_item.js.es6
View file @
109dc41f
...
...
@@ -17,9 +17,12 @@
},
computed: {
isFolder: function() {
debugger;
isFolder: function () {
return this.model.children && this.model.children.length
},
isOpen: function () {
return this.open;
}
},
...
...
app/views/projects/environments/components/_environment.html.haml
View file @
109dc41f
%environment-item
{
"inline-template"
=>
true
,
"v-for"
=>
"environment in state.environments"
,
":model"
=>
"environment"
}
%i
{
"v-if"
=>
"isFolder"
}
=
icon
(
"plus"
)
%i
{
"v-if"
=>
""
}
=
icon
(
"less"
)
{{model.name}}
.name
{
"click"
=>
"toggle"
}
%i
{
"v-if"
=>
"isFolder && isOpen"
}
=
icon
(
"caret-down"
)
%i
{
"v-if"
=>
"isFolder && !isOpen"
}
=
icon
(
"caret-right"
)
{{model.name}}
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