mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 22:28:13 +00:00
[Persistence] Handle refresh after edit
Correctly handle Discard changes after leaving Edit mode when conflicts are detected; WTD-1033.
This commit is contained in:
@ -29,6 +29,13 @@ define(
|
||||
cache.markDirty(editableObject);
|
||||
};
|
||||
|
||||
// Delegate refresh to the original object; this avoids refreshing
|
||||
// the editable instance of the object, and ensures that refresh
|
||||
// correctly targets the "real" version of the object.
|
||||
persistence.refresh = function () {
|
||||
return domainObject.getCapability('persistence').refresh();
|
||||
};
|
||||
|
||||
return persistence;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user