From ccb2b1b2fbaf58a5545f32c86d30778c17c03f6f Mon Sep 17 00:00:00 2001 From: Sudarshan Kumar Date: Tue, 23 Jun 2020 14:51:04 +0530 Subject: Report Search,Menu Update,Disable console fixes Report Search,Menu Update,Disable console fixes Issue-ID: PORTAL-932 Change-Id: I4898cde786ef90828b0999750c34e6e85179c069 Signed-off-by: Sudarshan Kumar --- .../ngappsrc/portalsdk-tag-lib-0.0.1.tgz | Bin 360247 -> 360597 bytes .../ngappsrc/src/environments/environment.prod.ts | 3 ++- .../ngappsrc/src/environments/environment.ts | 3 ++- ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts | 5 +++++ 4 files changed, 9 insertions(+), 2 deletions(-) (limited to 'ecomp-sdk/epsdk-app-os/ngappsrc') diff --git a/ecomp-sdk/epsdk-app-os/ngappsrc/portalsdk-tag-lib-0.0.1.tgz b/ecomp-sdk/epsdk-app-os/ngappsrc/portalsdk-tag-lib-0.0.1.tgz index ae63bfb4..c8b68ce0 100644 Binary files a/ecomp-sdk/epsdk-app-os/ngappsrc/portalsdk-tag-lib-0.0.1.tgz and b/ecomp-sdk/epsdk-app-os/ngappsrc/portalsdk-tag-lib-0.0.1.tgz differ diff --git a/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.prod.ts b/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.prod.ts index a0f59731..df7495c6 100644 --- a/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.prod.ts +++ b/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.prod.ts @@ -29,5 +29,6 @@ export const environment = { getLeftMenu :'get_menu', removeRoleFunction:'role/removeRoleFunction.htm?role_id=', saveRole:'role/saveRole.htm?role_id=', - toggleProfileActive: 'profile/toggleProfileActive?profile_id=' + toggleProfileActive: 'profile/toggleProfileActive?profile_id=', + isLogDisabled:'true' }; diff --git a/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.ts b/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.ts index 214c39df..f51d577d 100644 --- a/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.ts +++ b/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.ts @@ -33,7 +33,8 @@ export const environment = { getLeftMenu :'http://www.sdk.onap.org:8080/epsdk-app-os/get_menu', removeRoleFunction:'http://www.sdk.onap.org:8080/epsdk-app-os/role/removeRoleFunction.htm?role_id=', saveRole:'http://www.sdk.onap.org:8080/epsdk-app-os/role/saveRole.htm?role_id=', - toggleProfileActive: 'http://www.sdk.onap.org:8080/epsdk-app-os/profile/toggleProfileActive?profile_id=' + toggleProfileActive: 'http://www.sdk.onap.org:8080/epsdk-app-os/profile/toggleProfileActive?profile_id=', + isLogDisabled:'false' }; /* diff --git a/ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts b/ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts index c7b673cf..a892a2e6 100644 --- a/ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts +++ b/ecomp-sdk/epsdk-app-os/ngappsrc/src/main.ts @@ -10,3 +10,8 @@ if (environment.production) { platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err)); + +console.log("isLogDisabled :: ",environment.isLogDisabled); +if (environment.isLogDisabled ==='true'){ + window['console']['log'] = function() {}; +} \ No newline at end of file -- cgit 1.2.3-korg