|
|
@@ -22,7 +22,8 @@ import { PushNotificationDecorator as LeavePushNotif } from 'fis/leave/decorator
|
|
|
import { FISMessaging } from 'fis/index';
|
|
|
import { BusinessDataModule } from 'fis/business.data/business.data.module';
|
|
|
import { NotificationService } from 'angularlib/notification/notification.service';
|
|
|
-import { DecoratorSubject } from 'fis-commons/decorator';
|
|
|
+import { env } from 'angularlib/environments/environment';
|
|
|
+import { TranslatePipe } from 'angularlib/labels/translate.pipe';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-root',
|
|
|
@@ -73,6 +74,7 @@ export class AppComponent extends BaseComponent implements OnInit {
|
|
|
|
|
|
private messaging = inject(FISMessaging);
|
|
|
private notification = inject(NotificationService);
|
|
|
+ private tr = inject(TranslatePipe);
|
|
|
|
|
|
constructor(
|
|
|
private router: Router,
|
|
|
@@ -104,6 +106,7 @@ export class AppComponent extends BaseComponent implements OnInit {
|
|
|
if (typeof title === 'string')
|
|
|
this.title = title;
|
|
|
else this.title = this.getLabel(title?.key,title?.default);
|
|
|
+ if (env !== 'PROD') this.title += ` (${this.tr.transform('test','Test')})`;
|
|
|
this.pbTitle.setTitle(this.title);
|
|
|
});
|
|
|
|