Code Review
/
policy
/
engine.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Resolved the Policy GUI Javascript issues
[policy/engine.git]
/
POLICY-SDK-APP
/
src
/
main
/
webapp
/
app
/
policyApp
/
controller
/
ImportDictionaryController.js
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
5e3238b
..
2dfd545
100644
(file)
--- a/
POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/ImportDictionaryController.js
+++ b/
POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/ImportDictionaryController.js
@@
-45,10
+45,14
@@
app.controller('importDictionaryController' , function ($scope, $modalInstance,
withCredentials: false,
headers: {'Content-Type': undefined},
transformRequest: angular.identity
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;
$scope.importButton = true;
- }).error(function(){
+ }).error(function(
data
){
Notification.error("Dictionary Upload Failed");
});
};
Notification.error("Dictionary Upload Failed");
});
};