Added Policy GUI Cosmetic Fixes
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / policy-models / Editor / PolicyTemplateController / ClosedLoopPMController.js
index caec13f..a672660 100644 (file)
@@ -23,7 +23,14 @@ angular.module("abs").controller('clPMController', ['$scope', '$window', '$timeo
         $scope.policyNavigator;
         $scope.savebutton = true;
         $scope.refreshCheck = false;
-           
+       
+        if(!$scope.temp.policy.editPolicy  && !$scope.temp.policy.readOnly){
+                $scope.temp.policy = {
+                                policyType : "Config",
+                                configPolicyType : "ClosedLoop_PM"
+                }
+        };
+        
         $scope.refresh = function(){
           if($scope.refreshCheck){
                $scope.policyNavigator.refresh();