fix logout
This commit is contained in:
parent
f44ef36459
commit
ae6b1f19fe
8 changed files with 61 additions and 43 deletions
|
|
@ -2,4 +2,5 @@
|
|||
<div ngbDropdownMenu *ngIf="getIsAuth()">
|
||||
<a routerLink="/mydata" class="data">Мои данные</a>
|
||||
<button ngbDropdownItem class="exit" (click)="logout()">Выйти</button>
|
||||
</div>
|
||||
</div>
|
||||
<button class="exit" *ngIf="!getIsAuth()" (click)="logout()">Выйти</button>
|
||||
|
|
@ -28,9 +28,7 @@ export class LogOutComponent implements OnInit{
|
|||
}
|
||||
|
||||
public logout(): void {
|
||||
this.httpClient.get<string>("esia/logout").toPromise().then(url => {
|
||||
window.open(url, "_self");
|
||||
})
|
||||
this.httpClient.get<any>("esia/logout").toPromise();
|
||||
}
|
||||
|
||||
public getUserFullname(): string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue