arch(sprint1): move UI env reads behind runtime facade
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
||||
import { environment } from '../../../environments/environment';
|
||||
import { UiRuntimeFacade } from '../../facades/runtime/ui-runtime.facade';
|
||||
|
||||
@Component({
|
||||
selector: 'app-logo',
|
||||
@@ -17,6 +17,13 @@ import { environment } from '../../../environments/environment';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class LogoComponent {
|
||||
brandName = environment.brandName;
|
||||
logoPath = (environment as any).logo ?? `/assets/images/${environment.theme}-logo.svg`;
|
||||
constructor(private readonly uiRuntime: UiRuntimeFacade) {}
|
||||
|
||||
get brandName(): string {
|
||||
return this.uiRuntime.brandName();
|
||||
}
|
||||
|
||||
get logoPath(): string {
|
||||
return this.uiRuntime.logoUrl();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user