diff options
author | guangxingwang <gw1218@att.com> | 2018-02-13 13:25:42 -0600 |
---|---|---|
committer | guangxingwang <gw1218@att.com> | 2018-02-13 13:26:18 -0600 |
commit | 204b88bda2339b3a395ea35bb5b7d500891527b7 (patch) | |
tree | cac1a857c242ada2fb76192d316d2258a23543d7 /POLICY-SDK-APP | |
parent | 2f0f31787cd35520b65fb3577d3dac21c1e50062 (diff) |
Fix a Bug on Editor Screen
On editor screen, sometimes click on + button only one click, it creates
more than text fields
Issue-ID: POLICY-629
Change-Id: I9acc95fa0a4a7df3828e579f994c06bfa3199eb5
Signed-off-by: guangxingwang <gw1218@att.com>
Diffstat (limited to 'POLICY-SDK-APP')
-rw-r--r-- | POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/DCAEMicroServicePolicyController.js | 7 |
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); |