mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
config logo (#63)
This commit is contained in:
committed by
Denys Vuika
parent
31bf8ac7aa
commit
fd685a6591
@@ -25,10 +25,16 @@ import { AppConfigService } from 'ng2-alfresco-core';
|
||||
encapsulation: ViewEncapsulation.None
|
||||
})
|
||||
export class HeaderComponent {
|
||||
static ASSETS_PATH = '/assets/images/';
|
||||
static DEFAULT_LOGO = 'alfresco-logo-white.svg';
|
||||
|
||||
constructor(private appConfig: AppConfigService) {}
|
||||
|
||||
get appName(): string {
|
||||
return <string>this.appConfig.get('application.name');
|
||||
}
|
||||
|
||||
get logo() {
|
||||
return `${HeaderComponent.ASSETS_PATH}${this.appConfig.get('logo', HeaderComponent.DEFAULT_LOGO)}`;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user