diff options
author | guangxingwang <gw1218@att.com> | 2017-10-31 10:54:59 -0500 |
---|---|---|
committer | guangxingwang <gw1218@att.com> | 2017-10-31 12:24:45 -0500 |
commit | 046653e9ef93acd6d480701f628cbc8dcb91e710 (patch) | |
tree | b2a882a2fe9df8cb76ec8d915caef15cfb8e1ba5 /POLICY-SDK-APP/src/main/webapp/app | |
parent | c7ccf9980b0299a65c55e906f7267bf241abd107 (diff) |
Fixed TOSCA parsing bugs
Fixed TOSCA paring bugs and retuned error messages to front-end.
Issue-ID: POLICY-405
Change-Id: Idc6efd062360acbb4ceb143af8619b5f7def723a
Signed-off-by: guangxingwang <gw1218@att.com>
Diffstat (limited to 'POLICY-SDK-APP/src/main/webapp/app')
-rw-r--r-- | POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/MSModelsDictController.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/MSModelsDictController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/MSModelsDictController.js index a010044c4..105225abc 100644 --- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/MSModelsDictController.js +++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/MSModelsDictController.js @@ -46,6 +46,11 @@ app.controller('editMSModelController' , function ($scope, $modalInstance, mess headers: {'Content-Type': undefined }, transformRequest: angular.identity }).success(function(data){ + if(data.errorMsg != undefined){ + Notification.error(data.errorMsg); + valid = false; + return; + } if(data.classListDatas == "EMPTY"){ Notification.error("No Micro Services Avaialble.") }else{ |