mirror of
https://github.com/nasa/openmct.git
synced 2025-05-04 09:42:57 +00:00
[Browse] Fixed tree nodes
Realized that this refers to a previously hidden arrow at the main title at the top of the page. Reverted the changes done to the tree nodes. #33.
This commit is contained in:
parent
57eefd7316
commit
7b4ef142f5
@ -27,7 +27,7 @@
|
|||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class='ui-symbol view-control'
|
class='ui-symbol view-control'
|
||||||
ng-click="toggle.toggle(); treeNode.trackExpansion() ; treeNode.contextMenu()"
|
ng-click="toggle.toggle(); treeNode.trackExpansion()"
|
||||||
ng-if="model.composition !== undefined"
|
ng-if="model.composition !== undefined"
|
||||||
>
|
>
|
||||||
{{toggle.isActive() ? "v" : ">"}}
|
{{toggle.isActive() ? "v" : ">"}}
|
||||||
|
@ -139,20 +139,6 @@ define(
|
|||||||
checkSelection();
|
checkSelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we are in edit mode, then a left-click on the
|
|
||||||
// down arrow next to a domain object's title should display
|
|
||||||
// a context menu
|
|
||||||
function contextMenu() {
|
|
||||||
//console.log('contextMenu() called');
|
|
||||||
|
|
||||||
if ($scope.domainObject.hasCapability('editor') || true) {
|
|
||||||
//console.log('contextMenu() believes in edit mode');
|
|
||||||
|
|
||||||
$rootScope.$broadcast('leftContextual');
|
|
||||||
console.log('contextMenu() broadcasted from root');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// 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);
|
||||||
@ -180,13 +166,7 @@ define(
|
|||||||
*/
|
*/
|
||||||
isSelected: function () {
|
isSelected: function () {
|
||||||
return isSelected;
|
return isSelected;
|
||||||
},
|
}
|
||||||
/**
|
|
||||||
* This method should be called when the down arrow next
|
|
||||||
* to a domain object's title is (left) clicked. If in edit
|
|
||||||
* mode, this activates a context menu.
|
|
||||||
*/
|
|
||||||
contextMenu: contextMenu
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user