move hideoptions to ng-class
This commit is contained in:
@@ -28,8 +28,6 @@ function umbTreeDirective($compile, $log, $q, $rootScope, treeService, notificat
|
||||
},
|
||||
controller: function ($scope, $element) {
|
||||
|
||||
$scope.hideoptions = ($scope.hideoptions === 'true') ? "hide-options" : "";
|
||||
|
||||
var vm = this;
|
||||
|
||||
var registeredCallbacks = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<ul class="umb-tree ' + hideoptions + '">
|
||||
<ul class="umb-tree" ng-class="{'hide-options': hideoptions === 'true'}">
|
||||
<li class="root">
|
||||
<div data-element="tree-root" ng-class="getNodeCssClass(tree.root)" ng-hide="hideheader" on-right-click="altSelect(tree.root, $event)">
|
||||
<h5>
|
||||
|
||||
Reference in New Issue
Block a user