mirror of
https://github.com/nasa/openmct.git
synced 2025-02-07 11:30:28 +00:00
[Persistence] Remove persistence usage from LocationCapability
This commit is contained in:
parent
8756b7213f
commit
dd6414daf0
@ -78,17 +78,12 @@ define(
|
|||||||
* completes.
|
* completes.
|
||||||
*/
|
*/
|
||||||
LocationCapability.prototype.setPrimaryLocation = function (location) {
|
LocationCapability.prototype.setPrimaryLocation = function (location) {
|
||||||
var capability = this;
|
|
||||||
return this.domainObject.useCapability(
|
return this.domainObject.useCapability(
|
||||||
'mutation',
|
'mutation',
|
||||||
function (model) {
|
function (model) {
|
||||||
model.location = location;
|
model.location = location;
|
||||||
}
|
}
|
||||||
).then(function () {
|
);
|
||||||
return capability.domainObject
|
|
||||||
.getCapability('persistence')
|
|
||||||
.persist();
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user