mirror of
https://github.com/nasa/openmct.git
synced 2025-06-15 05:38:12 +00:00
[Layout] Add commit to scope
Add a commit function to scope from the edit representer; this avoids issues trying to transparently detect and persist changes made during edit mode, while still requiring only minimal action from individual views. WTD-535.
This commit is contained in:
@ -158,6 +158,10 @@ define(
|
||||
// Store the position of this panel.
|
||||
$scope.configuration.panels[activeDragId] =
|
||||
rawPositions[activeDragId];
|
||||
// Mark this object as dirty to encourage persistence
|
||||
if ($scope.commit) {
|
||||
$scope.commit("Moved frame.");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user