mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
customisable header image url (#1449)
This commit is contained in:
@@ -39,7 +39,8 @@ import {
|
||||
AppStore,
|
||||
getHeaderColor,
|
||||
getAppName,
|
||||
getLogoPath
|
||||
getLogoPath,
|
||||
getHeaderImagePath
|
||||
} from '@alfresco/aca-shared/store';
|
||||
|
||||
@Component({
|
||||
@@ -68,6 +69,13 @@ export class AppHeaderComponent implements OnInit {
|
||||
this.headerColor$ = store.select(getHeaderColor);
|
||||
this.appName$ = store.select(getAppName);
|
||||
this.logo$ = store.select(getLogoPath);
|
||||
|
||||
store.select(getHeaderImagePath).subscribe(path => {
|
||||
document.body.style.setProperty(
|
||||
'--header-background-image',
|
||||
`url('${path}')`
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
Reference in New Issue
Block a user