diff --git a/src/app/auth/login.component.ts b/src/app/auth/login.component.ts index 07a0766..130ce7d 100644 --- a/src/app/auth/login.component.ts +++ b/src/app/auth/login.component.ts @@ -45,7 +45,8 @@ export class LoginComponent implements OnInit { .subscribe( result => { this.loginStatus = 'success'; - this.router.navigate([this.returnUrl]); + this.router.navigate([this.returnUrl]) + .then(() => { window.location.reload() }); }, error => { console.log( error._body ); diff --git a/src/app/layouts/full-layout.component.ts b/src/app/layouts/full-layout.component.ts index ff74ceb..2ccf68d 100644 --- a/src/app/layouts/full-layout.component.ts +++ b/src/app/layouts/full-layout.component.ts @@ -34,13 +34,14 @@ export class FullLayoutComponent implements OnInit { } userLogout() { - console.log('logout clicked'); + console.debug('logout clicked'); this.api .logout() .subscribe( result => { localStorage.clear(); - this.router.navigate(['/login']); + this.router.navigate(['/login']) + .then(() => { window.location.reload() }); } ); }