X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=POLICY-SDK-APP%2Fsrc%2Fmain%2Fwebapp%2Fapp%2FpolicyApp%2Fcontroller%2FdictionaryGridController%2FonapNameDictGridController.js;h=6727a7a304842d619d9131b12b617c538a1121cf;hb=HEAD;hp=4dd1df8c33af3ca4129dcc12e4fc99df34a34aa0;hpb=073cc188efe9abb4c010cf674e34e2cf46ef1c52;p=policy%2Fengine.git diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryGridController/onapNameDictGridController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryGridController/onapNameDictGridController.js index 4dd1df8c3..6727a7a30 100644 --- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryGridController/onapNameDictGridController.js +++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryGridController/onapNameDictGridController.js @@ -2,7 +2,7 @@ * ============LICENSE_START======================================================= * ONAP Policy Engine * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017, 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. @@ -17,7 +17,7 @@ * limitations under the License. * ============LICENSE_END========================================================= */ -app.controller('onapNameDictGridController', function ($scope, PolicyAppService, modalService, $modal, uiGridConstants,Grid){ +app.controller('onapNameDictGridController', function ($scope, PolicyAppService, modalService, $modal, uiGridConstants,Grid, Notification){ $( "#dialog" ).hide(); PolicyAppService.getData('getDictionary/get_OnapNameData').then(function (data) { @@ -58,7 +58,7 @@ app.controller('onapNameDictGridController', function ($scope, PolicyAppService, ' ' + ' ', width: '8%' }, - { field: 'onapName', displayName : 'Onap Name', sort: { direction: 'asc', priority: 0 } }, + { field: 'name', displayName : 'Onap Name', sort: { direction: 'asc', priority: 0 } }, { field: 'description', width: '20%' }, {field: 'userCreatedBy.userName', displayName : 'Created By'}, {field: 'userModifiedBy.userName', displayName : 'Modified By' }, @@ -189,7 +189,7 @@ app.controller('onapNameDictGridController', function ($scope, PolicyAppService, })} }, error : function(data){ - alert("Error while Searching."); + Notification.error("Error while Searching."); } }); };