Fixed Sonar issues for Console Logs
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / controller / dictionaryController / BRMSParamDictController.js
index 4b14829..f8d6d31 100644 (file)
@@ -1,8 +1,8 @@
 /*-
  * ============LICENSE_START=======================================================
- * ECOMP Policy Engine
+ * ONAP Policy Engine
  * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017, 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.
@@ -60,7 +60,6 @@ app.controller('editBRMSParamController' , function ($scope, $modalInstance, mes
                if(!regex.test(brmsParamDictionaryData.ruleName)) {
                        Notification.error("Enter Valid Rule Name without spaces or special characters");
                }else{
-                       var file  = $scope.MyFile;
                 var uuu = "saveDictionary/brms_dictionary/save_BRMSParam";
                 var postData={brmsParamDictionaryData: brmsParamDictionaryData, userid: userid};
                 $.ajax({
@@ -74,7 +73,9 @@ app.controller('editBRMSParamController' , function ($scope, $modalInstance, mes
                             $scope.brmsParamDictionaryDatas=data.brmsParamDictionaryDatas;});
                                                if($scope.brmsParamDictionaryDatas == "Duplicate"){
                                                        Notification.error("BRMSParan Dictionary exists with Same Name.")
-                                               }else{      
+                                               }else if($scope.brmsParamDictionaryDatas == "Validation"){
+                                                       Notification.error("BRMSParan Dictionary failed rule Validation.")
+                                               }else {
                                                        console.log($scope.brmsParamDictionaryDatas);
                                                        $modalInstance.close({brmsParamDictionaryDatas:$scope.brmsParamDictionaryDatas});
                                                }
@@ -92,4 +93,4 @@ app.controller('editBRMSParamController' , function ($scope, $modalInstance, mes
     $scope.close = function() {
         $modalInstance.close();
     };
-});
\ No newline at end of file
+});