mirror of
https://github.com/nasa/openmct.git
synced 2025-01-31 00:23:54 +00:00
Revert "[Edit Mode] Fix issue with navigation not triggering unsaved changes message for new objects. Removed logic that prevented mutation of new objects from triggering a transactional persist call. Fixes #1278"
This reverts commit 7dda85cc5f2783c2665ee2c65ce8bdc6a8adccce.
This commit is contained in:
parent
7dda85cc5f
commit
86b337ec88
@ -40,6 +40,7 @@ define([], function () {
|
||||
var wasActive = transactionService.isActive();
|
||||
cacheService.put(domainObject.getId(), domainObject.getModel());
|
||||
|
||||
if (persistence.persisted()) {
|
||||
if (!wasActive) {
|
||||
transactionService.startTransaction();
|
||||
}
|
||||
@ -52,6 +53,7 @@ define([], function () {
|
||||
if (!wasActive) {
|
||||
transactionService.commit();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user