aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2018-02-14 00:30:16 +0000
committerGerrit Code Review <gerrit@onap.org>2018-02-14 00:30:16 +0000
commit8baa15218033f9ab6741645eb380e17eb7d9c2dd (patch)
tree21dde4d511badb1abd0ddb5670a95a4bd7a17b59
parenteaca8f8d4609b0aed5a829d9d53e29e4543feaad (diff)
parent204b88bda2339b3a395ea35bb5b7d500891527b7 (diff)
Merge "Fix a Bug on Editor Screen"
-rw-r--r--POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/DCAEMicroServicePolicyController.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/DCAEMicroServicePolicyController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/DCAEMicroServicePolicyController.js
index 6f316c1e3..101366400 100644
--- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/DCAEMicroServicePolicyController.js
+++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/DCAEMicroServicePolicyController.js
@@ -438,6 +438,13 @@ angular.module('abs').controller('dcaeMicroServiceController', ['$scope', '$wind
}
//After initially create the edit template, reset it to false.
$scope.isInitEditTemplate = false;
+ if($scope.temp.policy.editPolicy){
+ //reset it to false since the template has been created
+ $scope.temp.policy.editPolicy = false;
+ //clean all the events of addNewChoice
+ $scope.$on('$destroy', addNewChoice);
+ }
+
}
var ele = angular.element(document.getElementById("DynamicTemplate"));
$compile(ele.contents())($scope);