Change icon to check if selected

This commit is contained in:
Matt Darby
2020-10-18 12:52:39 +01:00
committed by Nathan Woulfe
parent 8c7fa8159c
commit fc7f7295bf

View File

@@ -9,7 +9,7 @@
<span class="sr-only">Expand child items for {{node.name}}</span>
</button>
<umb-icon icon="{{node.icon}}" class="icon umb-tree-icon sprTree" ng-class="node.cssClass" title="{{::node.title}}" ng-click="select(node, $event)" ng-style="::node.style" tabindex="-1"></umb-icon>
<umb-icon icon="{{node.selected ? 'icon-check' : node.icon}}" class="icon umb-tree-icon sprTree" ng-class="node.cssClass" title="{{::node.title}}" ng-click="select(node, $event)" ng-style="::node.style" tabindex="-1"></umb-icon>
<span class="umb-tree-item__annotation"></span>
<a class="umb-tree-item__label" ng-href="#/{{::node.routePath}}" ng-click="select(node, $event)" title="{{::node.title}}">{{node.name}}</a>