mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 00:23:01 +00:00
[API] Persist mutations
This commit is contained in:
@ -58,7 +58,11 @@ define([
|
|||||||
|
|
||||||
MCT.prototype.verbs = {
|
MCT.prototype.verbs = {
|
||||||
mutate: function (domainObject, mutator) {
|
mutate: function (domainObject, mutator) {
|
||||||
return domainObject.useCapability('mutation', mutator);
|
return domainObject.useCapability('mutation', mutator)
|
||||||
|
.then(function () {
|
||||||
|
var persistence = domainObject.getCapability('persistence');
|
||||||
|
return persistence.persist();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user