mirror of
https://github.com/nasa/openmct.git
synced 2025-06-16 06:08:11 +00:00
[Forms] Communicate dirty state
Communicate dirty state out of generated forms; WTD-530.
This commit is contained in:
@ -21,8 +21,9 @@ define(
|
||||
|
||||
function controller($scope) {
|
||||
$scope.$watch("mctForm", function (mctForm) {
|
||||
console.log(JSON.stringify(mctForm));
|
||||
if ($scope.name) {
|
||||
$scope.$parent.mctForm = mctForm;
|
||||
$scope.$parent[$scope.name] = mctForm;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user