Fixed linter errors and removed inneeded api call

This commit is contained in:
Tom Bloor 2017-09-08 14:49:57 +01:00
parent 5279dfae10
commit b1c2f531bb
2 changed files with 68 additions and 162 deletions

View file

@ -38,10 +38,6 @@ export class LoginComponent implements OnInit {
}
);
this.api.graph_data(undefined).subscribe(
result => { console.log(result) }
)
// get return url from route parameters or default to '/'
this.returnUrl = this.route.snapshot.queryParams['returnUrl'] || '/';
}
@ -54,17 +50,15 @@ export class LoginComponent implements OnInit {
.subscribe(
result => {
console.log('logged in!');
this.loginStatus = "success";
this.loginStatus = 'success';
console.log(this.loginStatus);
this.router.navigate([this.returnUrl]);
},
error => {
console.log( error._body );
this.loginStatus = "send_failed";
this.loginStatus = 'send_failed';
console.log(this.loginStatus);
}
);
}
}