mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 08:39:59 +00:00
[Addressability] Expose current view in query param
Expose the currently selected view as a query string parameter, WTD-1149.
This commit is contained in:
@ -47,7 +47,14 @@ define(
|
||||
}
|
||||
}
|
||||
|
||||
function updateQueryParam(viewKey) {
|
||||
if (viewKey) {
|
||||
$location.search('view', viewKey);
|
||||
}
|
||||
}
|
||||
|
||||
$scope.$watch('domainObject', setViewForDomainObject);
|
||||
$scope.$watch('representation.selected.key', updateQueryParam);
|
||||
}
|
||||
|
||||
return BrowseObjectController;
|
||||
|
Reference in New Issue
Block a user