diff --git a/docs/customize_look&feel_guide.md b/docs/customize_look&feel_guide.md index 4c2db5dcd..bc967b6d0 100644 --- a/docs/customize_look&feel_guide.md +++ b/docs/customize_look&feel_guide.md @@ -10,11 +10,10 @@ Open the `setting.json` file, you'll see the default content as shown below: "headerBgColor": "#004a70", "headerLogo": "", "loginBgImg": "", + "appTitle": "", "product": { - "title": "Harbor", - "company": "goharbor", "name": "Harbor", - "introductions": { + "introduction": { "zh-cn": "", "es-es": "", "en-us": "" diff --git a/src/portal/src/app/base/global-search/global-search.component.ts b/src/portal/src/app/base/global-search/global-search.component.ts index 18cec297b..2aba69e2c 100644 --- a/src/portal/src/app/base/global-search/global-search.component.ts +++ b/src/portal/src/app/base/global-search/global-search.component.ts @@ -58,8 +58,8 @@ export class GlobalSearchComponent implements OnInit, OnDestroy { ngOnInit(): void { // custom skin let customSkinObj = this.skinableConfig.getProject(); - if (customSkinObj && customSkinObj.projectName) { - this.translate.get('GLOBAL_SEARCH.PLACEHOLDER', {'param': customSkinObj.projectName}).subscribe(res => { + if (customSkinObj && customSkinObj.name) { + this.translate.get('GLOBAL_SEARCH.PLACEHOLDER', {'param': customSkinObj.name}).subscribe(res => { // Placeholder text this.placeholderText = res; }); diff --git a/src/portal/src/app/base/navigator/navigator.component.html b/src/portal/src/app/base/navigator/navigator.component.html index 7c3cc19af..6783998c0 100644 --- a/src/portal/src/app/base/navigator/navigator.component.html +++ b/src/portal/src/app/base/navigator/navigator.component.html @@ -2,9 +2,9 @@
- - - {{customProjectName?.projectName? customProjectName?.projectName:(appTitle | translate)}} + + + {{customProjectName?.name? customProjectName?.name:(appTitle | translate)}}
diff --git a/src/portal/src/app/base/navigator/navigator.component.ts b/src/portal/src/app/base/navigator/navigator.component.ts index 0c432d5f2..2bcc194b1 100644 --- a/src/portal/src/app/base/navigator/navigator.component.ts +++ b/src/portal/src/app/base/navigator/navigator.component.ts @@ -61,8 +61,8 @@ export class NavigatorComponent implements OnInit { // custom skin let customSkinObj = this.skinableConfig.getSkinConfig(); if (customSkinObj) { - if (customSkinObj.projects) { - this.customProjectName = customSkinObj.projects; + if (customSkinObj.product) { + this.customProjectName = customSkinObj.product; } this.customStyle = customSkinObj; } diff --git a/src/portal/src/app/shared/about-dialog/about-dialog.component.html b/src/portal/src/app/shared/about-dialog/about-dialog.component.html index 75ec45695..ae3f1d9c8 100644 --- a/src/portal/src/app/shared/about-dialog/about-dialog.component.html +++ b/src/portal/src/app/shared/about-dialog/about-dialog.component.html @@ -4,7 +4,7 @@
-
{{customName?.projectName? customName?.projectName : ('APP_TITLE.HARBOR' | translate)}}
+
{{customName?.name? customName?.name : ('APP_TITLE.HARBOR' | translate)}}
{{'ABOUT.VERSION' | translate}} {{version}}
diff --git a/src/portal/src/app/sign-in/sign-in.component.html b/src/portal/src/app/sign-in/sign-in.component.html index 0b076d27f..5258aa345 100644 --- a/src/portal/src/app/sign-in/sign-in.component.html +++ b/src/portal/src/app/sign-in/sign-in.component.html @@ -2,7 +2,7 @@ -
+