|
|
|
@ -5,7 +5,8 @@ import { |
|
|
|
NAVIGATE_TO_MANAGE_PROFILE, |
|
|
|
SessionStateService, |
|
|
|
} from '@abp/ng.core'; |
|
|
|
import { Component, Inject } from '@angular/core'; |
|
|
|
import { UserMenu, UserMenuService } from '@abp/ng.theme.shared'; |
|
|
|
import { Component, Inject, TrackByFunction } from '@angular/core'; |
|
|
|
import { Observable } from 'rxjs'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
@ -16,12 +17,15 @@ export class CurrentUserComponent { |
|
|
|
currentUser$: Observable<CurrentUserDto> = this.configState.getOne$('currentUser'); |
|
|
|
selectedTenant$ = this.sessionState.getTenant$(); |
|
|
|
|
|
|
|
trackByFn: TrackByFunction<UserMenu> = (_, element) => element.id; |
|
|
|
|
|
|
|
get smallScreen(): boolean { |
|
|
|
return window.innerWidth < 992; |
|
|
|
} |
|
|
|
|
|
|
|
constructor( |
|
|
|
@Inject(NAVIGATE_TO_MANAGE_PROFILE) public navigateToManageProfile: () => void, |
|
|
|
@Inject(NAVIGATE_TO_MANAGE_PROFILE) public readonly navigateToManageProfile: () => void, |
|
|
|
public readonly userMenu: UserMenuService, |
|
|
|
private authService: AuthService, |
|
|
|
private configState: ConfigStateService, |
|
|
|
private sessionState: SessionStateService, |
|
|
|
|