mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +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
@@ -25,8 +25,7 @@ import { AppConfigService } from '@alfresco/adf-core';
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class HeaderComponent {
|
||||
static ASSETS_PATH = '/assets/images/';
|
||||
static DEFAULT_LOGO = 'alfresco-logo-white.svg';
|
||||
private defaultPath = '/assets/images/alfresco-logo-white.svg';
|
||||
|
||||
constructor(private appConfig: AppConfigService) {}
|
||||
|
||||
@@ -35,6 +34,6 @@ export class HeaderComponent {
|
||||
}
|
||||
|
||||
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