|
@@ -1,4 +1,4 @@
|
|
|
-import { Component, OnInit } from '@angular/core';
|
|
|
|
|
|
|
+import { Component, computed, OnInit, Signal } from '@angular/core';
|
|
|
import { RouterModule } from '@angular/router';
|
|
import { RouterModule } from '@angular/router';
|
|
|
import { BaseComponent, untilDestroy } from 'angularlib/base.component';
|
|
import { BaseComponent, untilDestroy } from 'angularlib/base.component';
|
|
|
import { LoginModule } from 'angularlib/login';
|
|
import { LoginModule } from 'angularlib/login';
|
|
@@ -26,6 +26,11 @@ import masterMenu from '../master.menu.json';
|
|
|
})
|
|
})
|
|
|
export class DashboardComponent extends BaseComponent implements OnInit{
|
|
export class DashboardComponent extends BaseComponent implements OnInit{
|
|
|
protected masterMenu = masterMenu;
|
|
protected masterMenu = masterMenu;
|
|
|
|
|
+ protected username: Signal<string> = computed(() => {
|
|
|
|
|
+ const GIVEN_NAME = this.loginService?.userSignal()?.name?.givenName;
|
|
|
|
|
+ const FIS_NAME = this.loginService?.userSignal()?.fisInfo?.name;
|
|
|
|
|
+ return GIVEN_NAME || FIS_NAME;
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
constructor(
|
|
constructor(
|
|
|
protected store: Store,
|
|
protected store: Store,
|
|
@@ -37,7 +42,6 @@ export class DashboardComponent extends BaseComponent implements OnInit{
|
|
|
|
|
|
|
|
ngOnInit(): void {
|
|
ngOnInit(): void {
|
|
|
super.ngOnInit();
|
|
super.ngOnInit();
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|