Fix redirect from Login dialog

This commit is contained in:
Denys Vuika
2016-04-21 20:30:39 +01:00
parent d524274d82
commit 3074d5ee04

View File

@@ -37,7 +37,7 @@ export class LoginComponent {
} }
this.auth.login('POST', value.username, value.password) this.auth.login('POST', value.username, value.password)
.subscribe( .subscribe(
(token:any) => this.router.navigate(['Home']), (token:any) => this.router.navigate(['Files']),
() => { () => {
this.error = true; this.error = true;
} }