/*-
* ============LICENSE_START=======================================================
- * ECOMP Policy Engine
+ * ONAP Policy Engine
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ================================================================================
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");
});
};