mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
ability to control full logo path (#102)
helps switching between root hosting and virtual paths
This commit is contained in:
committed by
Cilibiu Bogdan
parent
2d6ae127aa
commit
1679106e8d
@@ -4,7 +4,7 @@
|
|||||||
"name": "Alfresco Example Content Application",
|
"name": "Alfresco Example Content Application",
|
||||||
"build": "1234"
|
"build": "1234"
|
||||||
},
|
},
|
||||||
"logo": "alfresco-logo-white.svg",
|
"logo": "/assets/images/alfresco-logo-white.svg",
|
||||||
"languagePicker": false,
|
"languagePicker": false,
|
||||||
"document-list": {
|
"document-list": {
|
||||||
"supportedPageSizes": [
|
"supportedPageSizes": [
|
||||||
|
@@ -25,8 +25,7 @@ import { AppConfigService } from '@alfresco/adf-core';
|
|||||||
encapsulation: ViewEncapsulation.None
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class HeaderComponent {
|
export class HeaderComponent {
|
||||||
static ASSETS_PATH = '/assets/images/';
|
private defaultPath = '/assets/images/alfresco-logo-white.svg';
|
||||||
static DEFAULT_LOGO = 'alfresco-logo-white.svg';
|
|
||||||
|
|
||||||
constructor(private appConfig: AppConfigService) {}
|
constructor(private appConfig: AppConfigService) {}
|
||||||
|
|
||||||
@@ -35,6 +34,6 @@ export class HeaderComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get logo() {
|
get logo() {
|
||||||
return `${HeaderComponent.ASSETS_PATH}${this.appConfig.get('logo', HeaderComponent.DEFAULT_LOGO)}`;
|
return this.appConfig.get('logo', this.defaultPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user