diff options
author | Sudarshan Kumar <sudarshan.kumar@att.com> | 2020-07-08 19:23:28 +0530 |
---|---|---|
committer | Sudarshan Kumar <sudarshan.kumar@att.com> | 2020-07-08 19:46:22 +0530 |
commit | 5b557b51c6e41315ad48727340df8d3247154330 (patch) | |
tree | ecbc2bb03565ab82619a1a42d380420290abbf8a | |
parent | 31a652dc85dd1346a2c9ec5d9fa2359fedefd1ad (diff) |
Externalize Portal SDK Title
Externalize Portal SDK Title or Brand Name to the properties file.
Issue-ID: PORTAL-943
Change-Id: If8f10bd0316bbf2ba4cb5a08b58ae40e435b2a87
Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
4 files changed, 8 insertions, 2 deletions
diff --git a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileSearchController.java b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileSearchController.java index 0a928cf7..b58b6146 100644 --- a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileSearchController.java +++ b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/ProfileSearchController.java @@ -65,6 +65,7 @@ import org.onap.portalsdk.core.web.support.UserUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.servlet.ModelAndView; 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 df7495c6..a1739f60 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 @@ -30,5 +30,6 @@ export const environment = { removeRoleFunction:'role/removeRoleFunction.htm?role_id=', saveRole:'role/saveRole.htm?role_id=', toggleProfileActive: 'profile/toggleProfileActive?profile_id=', - isLogDisabled:'true' + isLogDisabled:'true', + brandName: "Portal SDK" }; 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 f51d577d..19547607 100644 --- a/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.ts +++ b/ecomp-sdk/epsdk-app-os/ngappsrc/src/environments/environment.ts @@ -34,7 +34,8 @@ export const environment = { 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=', - isLogDisabled:'false' + isLogDisabled:'false', + brandName: "Portal SDK" }; /* diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/components/header/header.component.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/components/header/header.component.ts index 8cfcdbe4..c42e1544 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/components/header/header.component.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/components/header/header.component.ts @@ -87,6 +87,9 @@ export class HeaderComponent implements OnInit { this.pushRightClass = 'push-right'; this.appName= 'Portal SDK' ; + if(environment.brandName && environment.brandName !=''){ + this.appName = environment.brandName; + } let result = this.headerService.getTopMenuItems(); result.subscribe(res => { this.response = res; |