X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=POLICY-SDK-APP%2Fsrc%2Fmain%2Fwebapp%2Fapp%2FpolicyApp%2Fcontroller%2FdictionaryController%2FMSHeaderDefaultValuesDictController.js;h=8492a96d311c9d94f0386d49ef9d509a8df316b8;hb=refs%2Fchanges%2F10%2F97710%2F5;hp=883ac2508001a971b85bbf8790093b1221492dde;hpb=a65d684a684105c39a64181bbd44f1debb80fb06;p=policy%2Fengine.git diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/MSHeaderDefaultValuesDictController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/MSHeaderDefaultValuesDictController.js index 883ac2508..8492a96d3 100644 --- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/MSHeaderDefaultValuesDictController.js +++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryController/MSHeaderDefaultValuesDictController.js @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP Policy Engine * ================================================================================ - * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2018, 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. @@ -112,16 +112,17 @@ app.controller('editMSHeaderDefaultValuesController' , function ($scope, $modal data: JSON.stringify(postData), success : function(data){ $scope.$apply(function(){ - $scope.microServiceAttributeDictionaryDatas=data.microServiceHeaderDefaultDatas;}); + $scope.microServiceHeaderDefaultDatas=data.microServiceHeaderDefaultDatas;}); + console.log("microServiceHeaderDefaultDatas returned after saved: " + $scope.microServiceHeaderDefaultDatas); if($scope.microServiceAttributeDictionaryDatas == "Duplicate"){ Notification.error("Model Attribute Dictionary exists with Same Attribute Name.") }else{ - console.log($scope.microServiceAttributeDictionaryDatas); - $modalInstance.close({microServiceAttributeDictionaryDatas:$scope.microServiceAttributeDictionaryDatas}); + console.log($scope.microServiceHeaderDefaultDatas); + $modalInstance.close({microServiceHeaderDefaultDatas:$scope.microServiceHeaderDefaultDatas}); } }, error : function(data){ - alert("Error while saving."); + Notification.error("Error while saving."); } });