mirror of
https://github.com/nasa/openmct.git
synced 2025-05-08 11:38:35 +00:00
#287 - modified to use s-status-editing, but CSS needed
This commit is contained in:
parent
a864c172d5
commit
e6054b8252
@ -23,7 +23,7 @@
|
|||||||
<span ng-controller="TreeNodeController as treeNode">
|
<span ng-controller="TreeNodeController as treeNode">
|
||||||
<span
|
<span
|
||||||
class="tree-item menus-to-left"
|
class="tree-item menus-to-left"
|
||||||
ng-class="{selected: treeNode.isSelected(), active: editing}"
|
ng-class="{selected: treeNode.isSelected()}"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
mct-device="desktop"
|
mct-device="desktop"
|
||||||
|
@ -144,15 +144,6 @@ define(
|
|||||||
this.$timeout = $timeout;
|
this.$timeout = $timeout;
|
||||||
this.$scope = $scope;
|
this.$scope = $scope;
|
||||||
|
|
||||||
//$scope.editing =
|
|
||||||
// $scope.domainObject.getCapability('status').get().indexOf('editing') >=0;
|
|
||||||
|
|
||||||
//TODO: Temporary hack until css classes are defined for status
|
|
||||||
// change
|
|
||||||
$scope.domainObject.getCapability('status').listen(function(status){
|
|
||||||
$scope.editing = status.indexOf('editing') >=0;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Listen for changes which will effect display parameters
|
// Listen for changes which will effect display parameters
|
||||||
$scope.$watch("ngModel.selectedObject", setSelection);
|
$scope.$watch("ngModel.selectedObject", setSelection);
|
||||||
$scope.$watch("domainObject", checkSelection);
|
$scope.$watch("domainObject", checkSelection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user