WIP
This commit is contained in:
@@ -6,10 +6,10 @@ import { LayoutService } from '../../../@core/utils';
|
||||
import { map, takeUntil, first } from 'rxjs/operators';
|
||||
import { Subject } from 'rxjs';
|
||||
import { HeaderService } from '../../../services/header.service';
|
||||
import { NbAuthService } from '@nebular/auth';
|
||||
import { AuthService } from '../../../services/auth.service';
|
||||
import { UserProfileAction } from '../../../entity/Auth';
|
||||
import { Router } from '@angular/router';
|
||||
import { LoginUserService } from '../../../services/login-user.service';
|
||||
import { AuthService } from '../../../services/auth.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-header',
|
||||
@@ -54,7 +54,7 @@ export class HeaderComponent implements OnInit, OnDestroy {
|
||||
}];
|
||||
|
||||
public get user() {
|
||||
return this.authService.userAccess;
|
||||
return this.loginUserService.userAccess;
|
||||
}
|
||||
public get userFullName() {
|
||||
if (this.user) {
|
||||
@@ -78,7 +78,7 @@ export class HeaderComponent implements OnInit, OnDestroy {
|
||||
private layoutService: LayoutService,
|
||||
private breakpointService: NbMediaBreakpointsService,
|
||||
private headerService: HeaderService,
|
||||
private oAuthService: NbAuthService,
|
||||
private loginUserService: LoginUserService,
|
||||
private authService: AuthService,
|
||||
protected router: Router,
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user