Procházet zdrojové kódy

added '(Test)' title for test env

tigger před 11 měsíci
rodič
revize
072e10f6fd
3 změnil soubory, kde provedl 6 přidání a 3 odebrání
  1. 4 1
      src/app/app.component.ts
  2. 1 1
      src/app/app.routes.ts
  3. 1 1
      src/dependencies/fis

+ 4 - 1
src/app/app.component.ts

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

+ 1 - 1
src/app/app.routes.ts

@@ -3,7 +3,7 @@ import { DashboardComponent } from './dashboard/dashboard.component';
 
 export const routes: Routes = [
     { path: '', redirectTo: '/dashboard', pathMatch: 'full' },
-    { path:'dashboard', component: DashboardComponent, data: {title: 'Financial Information System'}},
+    { path:'dashboard', component: DashboardComponent, data: {title: 'FIS'}},
     { path:'auth', loadChildren: () => import('angularlib/login/login.module').then(m => m.LoginModule)},
     { path:'tender', loadChildren: () => import('fis/tender/tender.module').then(m => m.TenderModule)},
     { path:'leave', loadChildren: () => import('fis/leave/leave.module').then(m => m.LeaveModule)}

+ 1 - 1
src/dependencies/fis

@@ -1 +1 @@
-Subproject commit 67d5e07c73ed59ab3c0a5f8d3d931c1f11f672ba
+Subproject commit dc357b787ec07886a2e1a8c5a7e7a1328388c95b