arch(sprint1): move UI env reads behind runtime facade

This commit is contained in:
sdarbinyan
2026-07-03 01:58:08 +04:00
parent 3cbb28a116
commit ae258382e1
9 changed files with 144 additions and 24 deletions

View File

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