ability to control full logo path (#102)

helps switching between root hosting and virtual paths
This commit is contained in:
Denys Vuika
2017-12-04 04:08:46 +00:00
committed by Cilibiu Bogdan
parent 2d6ae127aa
commit 1679106e8d
2 changed files with 3 additions and 4 deletions

View File

@@ -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);
}
}