Commit 109dc41f authored by Filipa Lacerda's avatar Filipa Lacerda

Adds folder icons

parent de990812
...@@ -17,9 +17,12 @@ ...@@ -17,9 +17,12 @@
}, },
computed: { computed: {
isFolder: function() { isFolder: function () {
debugger;
return this.model.children && this.model.children.length return this.model.children && this.model.children.length
},
isOpen: function () {
return this.open;
} }
}, },
......
%environment-item{"inline-template" => true, %environment-item{"inline-template" => true,
"v-for" => "environment in state.environments", "v-for" => "environment in state.environments",
":model" => "environment"} ":model" => "environment"}
%i{"v-if" => "isFolder"} .name{"click" => "toggle"}
= icon("plus") %i{"v-if" => "isFolder && isOpen"}
%i{"v-if" => ""} = icon("caret-down")
= icon("less") %i{"v-if" => "isFolder && !isOpen"}
{{model.name}} = icon("caret-right")
{{model.name}}
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