mirror of
https://github.com/nasa/openmct.git
synced 2025-01-15 09:20:26 +00:00
[Treeview] Clicking toggles model property
Clicking on the pane tab icon toggles ngModel.pane
This commit is contained in:
parent
8108a3b81c
commit
4a730f875f
@ -23,7 +23,8 @@
|
||||
|
||||
<div class="object-browse-bar bar abs">
|
||||
|
||||
<div class="ui-symbol left-pane-tabs">
|
||||
<div class="ui-symbol left-pane-tabs"
|
||||
ng-click="ngModel.pane = !ngModel.pane; log(ngModel.pane)">
|
||||
<
|
||||
</div>
|
||||
|
||||
|
@ -50,8 +50,9 @@
|
||||
<div class='split-pane-component items pane'>
|
||||
<div class='holder abs'
|
||||
id='content-area'>
|
||||
<mct-representation mct-object="navigatedObject"
|
||||
key="'browse-object'">
|
||||
<mct-representation key="'browse-object'"
|
||||
mct-object="navigatedObject"
|
||||
ng-model="paneModel">
|
||||
</mct-representation>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -141,12 +141,10 @@ define(
|
||||
selectedObject: navigationService.getNavigation()
|
||||
};
|
||||
|
||||
/*
|
||||
// Provide a model for the left pane
|
||||
$scope.paneModel = {
|
||||
selectedObject: navigationService.getNavigation()
|
||||
};
|
||||
*/
|
||||
|
||||
// Listen for changes in navigation state.
|
||||
navigationService.addListener(setNavigation);
|
||||
|
@ -64,8 +64,14 @@ define(
|
||||
}
|
||||
}
|
||||
|
||||
$scope.ngModel.pane = true;
|
||||
|
||||
$scope.$watch('domainObject', setViewForDomainObject);
|
||||
$scope.$watch('representation.selected.key', updateQueryParam);
|
||||
|
||||
$scope.log = function (c) {
|
||||
console.log(c);
|
||||
};
|
||||
}
|
||||
|
||||
return BrowseObjectController;
|
||||
|
Loading…
Reference in New Issue
Block a user