arch(sprint1): move UI env reads behind runtime facade
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { Component, ChangeDetectionStrategy, inject } from '@angular/core';
|
||||
import { Location } from '@angular/common';
|
||||
import { environment } from '../../../environments/environment';
|
||||
import { TranslateService } from '../../i18n/translate.service';
|
||||
import { UiRuntimeFacade } from '../../facades/runtime/ui-runtime.facade';
|
||||
|
||||
@Component({
|
||||
selector: 'app-back-button',
|
||||
@@ -62,9 +62,13 @@ import { TranslateService } from '../../i18n/translate.service';
|
||||
changeDetection: ChangeDetectionStrategy.OnPush
|
||||
})
|
||||
export class BackButtonComponent {
|
||||
isnovo = environment.theme === 'novo';
|
||||
private readonly uiRuntime = inject(UiRuntimeFacade);
|
||||
i18n = inject(TranslateService);
|
||||
|
||||
get isnovo(): boolean {
|
||||
return this.uiRuntime.isNovo();
|
||||
}
|
||||
|
||||
constructor(private location: Location) {}
|
||||
|
||||
goBack(): void {
|
||||
|
||||
Reference in New Issue
Block a user