mirror of
https://github.com/nasa/openmct.git
synced 2025-03-22 03:55:31 +00:00
[Addressability] Get IDs from URL
Add a route parameter to Browse mode which includes domain object identifiers. WTD-1149.
This commit is contained in:
parent
f6eb9904ff
commit
f24db1561e
@ -2,7 +2,7 @@
|
||||
"extensions": {
|
||||
"routes": [
|
||||
{
|
||||
"when": "/browse",
|
||||
"when": "/browse/:id*",
|
||||
"templateUrl": "templates/browse.html"
|
||||
},
|
||||
{
|
||||
@ -14,7 +14,7 @@
|
||||
{
|
||||
"key": "BrowseController",
|
||||
"implementation": "BrowseController.js",
|
||||
"depends": [ "$scope", "objectService", "navigationService" ]
|
||||
"depends": [ "$scope", "$routeParams", "objectService", "navigationService" ]
|
||||
},
|
||||
{
|
||||
"key": "CreateMenuController",
|
||||
@ -150,4 +150,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ define(
|
||||
*
|
||||
* @constructor
|
||||
*/
|
||||
function BrowseController($scope, objectService, navigationService) {
|
||||
function BrowseController($scope, $routeParams, objectService, navigationService) {
|
||||
// Callback for updating the in-scope reference to the object
|
||||
// that is currently navigated-to.
|
||||
function setNavigation(domainObject) {
|
||||
@ -91,4 +91,4 @@ define(
|
||||
|
||||
return BrowseController;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user