Skip to content

Commit

Permalink
Fixes #423
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed Dec 27, 2016
1 parent 2f81777 commit 28a3525
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/controllers/function-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,20 @@ functionModule.controller("FunctionController", ['$scope', '$routeParams', '$loc
}
})
$scope.$watch("functionToExecute.name", function (newVal, oldVal) {


if (oldVal && oldVal != newVal) {
$scope.isDirty = true;
}
})

$scope.$watch("functionToExecute.idempotent", function (newVal, oldVal) {
if (newVal != null) {
if (oldVal !== newVal) {
$scope.isDirty = true;
}
}
})
$scope.$watchCollection("functionToExecute.parameters", function (newVal, oldVal) {
if (oldVal && oldVal != newVal) {
$scope.isDirty = true;
Expand Down

0 comments on commit 28a3525

Please sign in to comment.