mirror of
https://github.com/nasa/openmct.git
synced 2025-06-22 00:57:11 +00:00
[Forms] Communicate dirty state
Communicate dirty state out of generated forms; WTD-530.
This commit is contained in:
@ -60,7 +60,7 @@ define(
|
||||
structure: "=",
|
||||
|
||||
// Name, as in "<input name="...
|
||||
name: "@"
|
||||
field: "="
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -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