[Edit] Return promise from editable persistence

https://github.com/nasa/openmctweb/issues/305
This commit is contained in:
Victor Woeltjen
2015-12-01 16:45:08 -08:00
parent 3fd4304de1
commit 03edd26e17
2 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@ define(
// Simply trigger refresh of in-view objects; do not // Simply trigger refresh of in-view objects; do not
// write anything to database. // write anything to database.
persistence.persist = function () { persistence.persist = function () {
cache.markDirty(editableObject); return cache.markDirty(editableObject);
}; };
// Delegate refresh to the original object; this avoids refreshing // Delegate refresh to the original object; this avoids refreshing

View File

@ -111,6 +111,7 @@ define(
*/ */
EditableDomainObjectCache.prototype.markDirty = function (domainObject) { EditableDomainObjectCache.prototype.markDirty = function (domainObject) {
this.dirtyObjects[domainObject.getId()] = domainObject; this.dirtyObjects[domainObject.getId()] = domainObject;
return this.$q.when(true);
}; };
/** /**