Fixed minor issues with login & logout. Cleaned up the UI.
This commit is contained in:
@ -59,10 +59,10 @@ export class ImpersonationComponent implements OnInit {
|
||||
body: {
|
||||
impersonation: e.value
|
||||
}
|
||||
}).subscribe((data: any) => {
|
||||
}).subscribe(async (data: any) => {
|
||||
this.hermes.disconnect();
|
||||
this.events.emit('impersonation', e.value);
|
||||
this.router.navigate(['/tts-login']);
|
||||
await this.router.navigate(['tts-login']);
|
||||
});
|
||||
} else {
|
||||
this.http.put(environment.API_HOST + '/admin/impersonate', {
|
||||
@ -71,10 +71,10 @@ export class ImpersonationComponent implements OnInit {
|
||||
headers: {
|
||||
'Authorization': 'Bearer ' + localStorage.getItem('jwt')
|
||||
}
|
||||
}).subscribe((data: any) => {
|
||||
}).subscribe(async (data: any) => {
|
||||
this.hermes.disconnect();
|
||||
this.events.emit('impersonation', e.value);
|
||||
this.router.navigate(['/tts-login']);
|
||||
await this.router.navigate(['tts-login']);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user