adding patient profile link.
This commit is contained in:
parent
6a5970682e
commit
3dfce9d3a4
|
@ -64,11 +64,11 @@
|
||||||
<div class="az-dropdown-header d-sm-none">
|
<div class="az-dropdown-header d-sm-none">
|
||||||
<a class="az-header-arrow" (click)="closeMenu($event)"><i class="icon ion-md-arrow-back"></i></a>
|
<a class="az-header-arrow" (click)="closeMenu($event)"><i class="icon ion-md-arrow-back"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="az-header-profile">
|
<div [routerLink]="'/patient-profile'" class="az-header-profile cursor-pointer">
|
||||||
<div class="az-img-user">
|
<div class="az-img-user">
|
||||||
<img src="assets/logo/logo-text.png" alt="">
|
<img src="assets/logo/logo-text.png" alt="">
|
||||||
</div><!-- az-img-user -->
|
</div><!-- az-img-user -->
|
||||||
<h6>{{current_user_claims.full_name || current_user_claims.email || current_user_claims.sub}}</h6>
|
<h6>{{current_user_claims.full_name || current_user_claims.sub || current_user_claims.email }}</h6>
|
||||||
<span>Adminstrator</span>
|
<span>Adminstrator</span>
|
||||||
</div><!-- az-header-profile -->
|
</div><!-- az-header-profile -->
|
||||||
|
|
||||||
|
|
|
@ -172,6 +172,7 @@ export class AuthService {
|
||||||
|
|
||||||
//parse the authToken to get user information
|
//parse the authToken to get user information
|
||||||
let jwtClaims = jose.decodeJwt(authToken)
|
let jwtClaims = jose.decodeJwt(authToken)
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
return jwtClaims as UserRegisteredClaims
|
return jwtClaims as UserRegisteredClaims
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue