mirror of
https://github.com/nasa/openmct.git
synced 2025-06-22 17:08:57 +00:00
[Persistence] Only auto-persist previously saved domain objects
This commit is contained in:
@ -202,6 +202,15 @@ define(
|
||||
return this.identifierService.parse(id).getSpace();
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if this domain object has been persisted at some
|
||||
* point.
|
||||
* @returns {boolean} true if the object has been persisted
|
||||
*/
|
||||
PersistenceCapability.prototype.persisted = function () {
|
||||
return this.domainObject.getModel().persisted !== undefined;
|
||||
};
|
||||
|
||||
return PersistenceCapability;
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user