mirror of
https://github.com/nasa/openmct.git
synced 2025-06-22 17:08:57 +00:00
[MyItems Plugin] Migrate/remove legacy MyItems code into new plugin (#4107)
* removed legacy my items, created my items plugin, moved relevant code to new plugin * added object api method for checking if a domainObject is a missing object Co-authored-by: Andrew Henry <akhenry@gmail.com>
This commit is contained in:
@ -302,6 +302,13 @@ ObjectAPI.prototype.isPersistable = function (idOrKeyString) {
|
||||
&& provider.update !== undefined;
|
||||
};
|
||||
|
||||
ObjectAPI.prototype.isMissing = function (domainObject) {
|
||||
let identifier = utils.makeKeyString(domainObject.identifier);
|
||||
let missingName = 'Missing: ' + identifier;
|
||||
|
||||
return domainObject.name === missingName;
|
||||
};
|
||||
|
||||
/**
|
||||
* Save this domain object in its current state. EXPERIMENTAL
|
||||
*
|
||||
|
Reference in New Issue
Block a user