mirror of
https://github.com/nasa/openmct.git
synced 2025-06-01 15:10:50 +00:00
[Addressability] Infer ROOT
Treat the path element for the root domain object as implicit, such that it does not appear in the full URL. WTD-1149.
This commit is contained in:
parent
8f18d88705
commit
9fae2db04a
@ -29,7 +29,8 @@ define(
|
|||||||
function () {
|
function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var DEFAULT_PATH = "ROOT/mine";
|
var ROOT_ID = "ROOT",
|
||||||
|
DEFAULT_PATH = "mine";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The BrowseController is used to populate the initial scope in Browse
|
* The BrowseController is used to populate the initial scope in Browse
|
||||||
@ -41,7 +42,9 @@ define(
|
|||||||
* @constructor
|
* @constructor
|
||||||
*/
|
*/
|
||||||
function BrowseController($scope, $routeParams, objectService, navigationService) {
|
function BrowseController($scope, $routeParams, objectService, navigationService) {
|
||||||
var path = ($routeParams.ids || DEFAULT_PATH).split("/");
|
var path = [ROOT_ID].concat(
|
||||||
|
($routeParams.ids || DEFAULT_PATH).split("/")
|
||||||
|
);
|
||||||
|
|
||||||
// Callback for updating the in-scope reference to the object
|
// Callback for updating the in-scope reference to the object
|
||||||
// that is currently navigated-to.
|
// that is currently navigated-to.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user