mirror of
https://github.com/nasa/openmct.git
synced 2025-06-06 01:11:41 +00:00
[Windowing] Excess function
Removed extra function from urlService. WTD 23.
This commit is contained in:
parent
3d0e0af7f2
commit
193df4fde3
@ -65,22 +65,6 @@ define(
|
|||||||
return newTabPath;
|
return newTabPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
function urlForEdit(mode, domainObject) {
|
|
||||||
var context = domainObject &&
|
|
||||||
domainObject.getCapability('context'),
|
|
||||||
objectPath = context ? context.getPath() : [],
|
|
||||||
ids = objectPath.map(function (domainObject) {
|
|
||||||
return domainObject.getId();
|
|
||||||
}),
|
|
||||||
// Parses the path together. Starts with the
|
|
||||||
// default index.html file, then the mode passed
|
|
||||||
// into the service, followed by ids in the url
|
|
||||||
// joined by '/', and lastly the view path from
|
|
||||||
// the current location
|
|
||||||
path = mode + "/";
|
|
||||||
return path;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
/**
|
/**
|
||||||
* Returns the Url path for a specific domain object
|
* Returns the Url path for a specific domain object
|
||||||
@ -100,9 +84,7 @@ define(
|
|||||||
* @param {DomainObject} value of the domain object
|
* @param {DomainObject} value of the domain object
|
||||||
* to get the path of
|
* to get the path of
|
||||||
*/
|
*/
|
||||||
urlForLocation: urlForLocation,
|
urlForLocation: urlForLocation
|
||||||
|
|
||||||
urlForEdit: urlForEdit
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user