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

Adds folder icons

parent de990812
......@@ -17,9 +17,12 @@
},
computed: {
isFolder: function() {
debugger;
isFolder: function () {
return this.model.children && this.model.children.length
},
isOpen: function () {
return this.open;
}
},
......
%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}}
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