2020-12-16 15:07:28 +01:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
2021-08-27 15:21:15 +01:00
|
|
|
import { LoginUserRespose } from 'src/app/models/user.model';
|
2021-05-12 11:34:28 +01:00
|
|
|
import { AuthService } from 'src/app/services/auth.service';
|
2022-10-12 17:01:09 +01:00
|
|
|
import { SessionStore } from 'src/app/store/session.service';
|
2020-12-16 15:07:28 +01:00
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'app-header-pr',
|
|
|
|
|
templateUrl: './header-pr.page.html',
|
|
|
|
|
styleUrls: ['./header-pr.page.scss'],
|
|
|
|
|
})
|
|
|
|
|
export class HeaderPrPage implements OnInit {
|
|
|
|
|
|
2021-08-27 15:21:15 +01:00
|
|
|
loggeduser: LoginUserRespose;
|
2021-05-12 11:34:28 +01:00
|
|
|
|
|
|
|
|
constructor(authService: AuthService) {
|
2022-10-12 17:01:09 +01:00
|
|
|
this.loggeduser = SessionStore.user;
|
2021-05-12 11:34:28 +01:00
|
|
|
}
|
2020-12-16 15:07:28 +01:00
|
|
|
|
|
|
|
|
ngOnInit() {
|
2021-05-12 11:34:28 +01:00
|
|
|
|
2020-12-16 15:07:28 +01:00
|
|
|
}
|
|
|
|
|
|
2021-03-02 14:46:38 +01:00
|
|
|
locationPathname(): string {
|
|
|
|
|
return window.location.pathname
|
|
|
|
|
}
|
|
|
|
|
|
2020-12-16 15:07:28 +01:00
|
|
|
}
|