X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=POLICY-SDK-APP%2Fsrc%2Fmain%2Fwebapp%2Fapp%2FpolicyApp%2Fcontroller%2FImportDictionaryController.js;h=2dfd545f16699d55e94d17b014136520af9a12ee;hb=HEAD;hp=9043472c655255ad72634e46a1aeed54ec422e53;hpb=e0addf5b588a1244f9679becd90999dfcb4c3a94;p=policy%2Fengine.git diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/ImportDictionaryController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/ImportDictionaryController.js index 9043472c6..2dfd545f1 100644 --- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/ImportDictionaryController.js +++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/ImportDictionaryController.js @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * ECOMP Policy Engine + * ONAP Policy Engine * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * ================================================================================ @@ -45,10 +45,14 @@ app.controller('importDictionaryController' , function ($scope, $modalInstance, withCredentials: false, headers: {'Content-Type': undefined}, transformRequest: angular.identity - }).success(function(){ - Notification.success("Dictionary Uploaded Successfully"); + }).success(function(data){ + if(data.includes("Success")){ + Notification.success("Dictionary Uploaded Successfully"); + }else{ + Notification.error(data); + } $scope.importButton = true; - }).error(function(){ + }).error(function(data){ Notification.error("Dictionary Upload Failed"); }); };