show expand arrow for list views

This commit is contained in:
Mads Rasmussen
2017-01-30 22:34:04 +01:00
parent ed019a90e2
commit 4336f5201d

View File

@@ -74,11 +74,14 @@ angular.module("umbraco.directives")
//toggle visibility of last 'ins' depending on children
//visibility still ensure the space is "reserved", so both nodes with and without children are aligned.
if (!node.hasChildren) {
element.find("ins").last().css("visibility", "hidden");
console.log(node);
if (node.hasChildren || node.metaData.isContainer) {
element.find("ins").last().css("visibility", "visible");
}
else {
element.find("ins").last().css("visibility", "visible");
element.find("ins").last().css("visibility", "hidden");
}
var icon = element.find("i:first");