X-Git-Url: https://gerrit.onap.org/r/gitweb?p=policy%2Fengine.git;a=blobdiff_plain;f=POLICY-SDK-APP%2Fsrc%2Fmain%2Fwebapp%2Fapp%2FpolicyApp%2Fpolicy-models%2FEditor%2FPolicyTemplateController%2FOptimizationPolicyController.js;fp=POLICY-SDK-APP%2Fsrc%2Fmain%2Fwebapp%2Fapp%2FpolicyApp%2Fpolicy-models%2FEditor%2FPolicyTemplateController%2FOptimizationPolicyController.js;h=8de78fc091a7ac0495da3035769c0a6fd25697d2;hp=cdeaefdeaaaecc688fcc4cdf6b779ec7ca09547c;hb=710011b4fb147bf100c52c4b0425160bba88a0fd;hpb=ffd7241c7bfa8d8b68b504406fc6ed4cc299ffe6 diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/OptimizationPolicyController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/OptimizationPolicyController.js index cdeaefdea..8de78fc09 100644 --- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/OptimizationPolicyController.js +++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/Editor/PolicyTemplateController/OptimizationPolicyController.js @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP Policy Engine * ================================================================================ - * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2018-2019 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ angular.module('abs').controller('optimizationController', ['$scope', '$window', policyType : "Config", configPolicyType : "Optimization" } - }; + } $scope.refresh = function(){ if($scope.refreshCheck){ @@ -270,11 +270,9 @@ angular.module('abs').controller('optimizationController', ['$scope', '$window', } }; - var splitDash = '-'; var splitEqual = '='; var splitComma = ','; var splitcolon = ':'; - var splitsemicolon = ";"; var splitEnum = "],"; var plainAttributeKeys = []; var matching = []; @@ -298,7 +296,6 @@ angular.module('abs').controller('optimizationController', ['$scope', '$window', data: JSON.stringify(postData), success : function(data){ $scope.$apply(function(){ - var plainAttributeKeys = []; $scope.optimizationModelData = data[0].optimizationModelData; $scope.optimizationJsonDate = data[0].jsonValue; $scope.dataOrderInfo = null; @@ -332,7 +329,6 @@ angular.module('abs').controller('optimizationController', ['$scope', '$window', $scope.temp.policy.priority = ""; } - var enumAttributes = $scope.optimizationModelData.enumValues; var annotation = $scope.optimizationModelData.annotation; var dictionary = $scope.microServiceAttributeDictionaryDatas; @@ -352,7 +348,6 @@ angular.module('abs').controller('optimizationController', ['$scope', '$window', if (dictionary!= null && dictionary.length>1){ for (m=0; m < dictionary.length; m += 1){ - var keyCompare = dictionary[m].name; var valueCompare = dictionary[m].value; var valueModel = dictionary[m].modelName; var conpairService = serviceName; @@ -439,7 +434,6 @@ angular.module('abs').controller('optimizationController', ['$scope', '$window', var label = $scope.labelManyKeys[i]; // first add parent/label level for (k = 0; k < unique.length; k++){ - var newindex = unique[k].lastIndexOf("@"); var newKey = unique[k].substring(0, index); if(label == newKey){ //Check this label has bee created or not @@ -1386,4 +1380,4 @@ angular.module('abs').controller('optimizationController', ['$scope', '$window', } }]);/** * - */ \ No newline at end of file + */