Added the permissions checks in the new content tree including start node rendering
This commit is contained in:
@@ -29,7 +29,7 @@ angular.module("umbraco.directives")
|
||||
if(!hideheader){
|
||||
template +='<div>' +
|
||||
'<h5><a class="root-link">{{tree.name}}</a></h5>' +
|
||||
'<i class="umb-options" ng-hide="tree.root.isContainer" ng-click="options(this, tree.root, $event)"><i></i><i></i><i></i></i>' +
|
||||
'<i class="umb-options" ng-hide="tree.root.isContainer || !tree.root.menuUrl" ng-click="options(this, tree.root, $event)"><i></i><i></i><i></i></i>' +
|
||||
'</div>';
|
||||
}
|
||||
template += '<ul>' +
|
||||
|
||||
@@ -35,7 +35,7 @@ angular.module("umbraco.directives")
|
||||
'<ins ng-show="node.hasChildren" ng-class="{\'icon-caret-right\': !node.expanded, \'icon-caret-down\': node.expanded}" ng-click="load(this, node)"></ins>' +
|
||||
'<i class="{{node | umbTreeIconClass:\'icon umb-tree-icon sprTree\'}}" style="{{node | umbTreeIconStyle}}"></i>' +
|
||||
'<a href="" ng-click="select(this, node, $event)" >{{node.name}}</a>' +
|
||||
'<i class="umb-options" ng-click="options(this, node, $event)"><i></i><i></i><i></i></i>' +
|
||||
'<i class="umb-options" ng-hide="!tree.root.menuUrl" ng-click="options(this, node, $event)"><i></i><i></i><i></i></i>' +
|
||||
'<div ng-show="node.loading" class="l"><div></div></div>' +
|
||||
'</div>' +
|
||||
'</li>',
|
||||
|
||||
Reference in New Issue
Block a user