mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 17:33:23 +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
|
||||
class='ui-symbol view-control'
|
||||
ng-click="toggle.toggle(); treeNode.trackExpansion() ; treeNode.contextMenu()"
|
||||
ng-click="toggle.toggle(); treeNode.trackExpansion()"
|
||||
ng-if="model.composition !== undefined"
|
||||
>
|
||||
{{toggle.isActive() ? "v" : ">"}}
|
||||
|
@ -139,20 +139,6 @@ define(
|
||||
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
|
||||
$scope.$watch("ngModel.selectedObject", setSelection);
|
||||
$scope.$watch("domainObject", checkSelection);
|
||||
@ -180,13 +166,7 @@ define(
|
||||
*/
|
||||
isSelected: function () {
|
||||
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