mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 15:18:12 +00:00
Inspector location (#2317)
* working original location - todo link location * remove link location for now * remove legacy getPath and implement new getOriginalPath API call * simplify getOriginalPath, and use path to calculate parent paths in location.vue
This commit is contained in:
committed by
Andrew Henry
parent
bcbf244fd2
commit
df53af7b4d
@ -226,7 +226,20 @@ define([
|
||||
(identifier.namespace === identifiers[0].namespace &&
|
||||
identifier.key === identifiers[0].key);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
ObjectAPI.prototype.getOriginalPath = function (identifier, path = []) {
|
||||
return this.get(identifier).then((domainObject) => {
|
||||
path.push(domainObject);
|
||||
let location = domainObject.location;
|
||||
|
||||
if (location) {
|
||||
return this.getOriginalPath(utils.parseKeyString(location), path);
|
||||
} else {
|
||||
return path;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Uniquely identifies a domain object.
|
||||
|
Reference in New Issue
Block a user