From 59693df21441dc40beb722f24f4e57b17f80c3fe Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Wed, 16 Aug 2017 16:10:32 +0100 Subject: [PATCH] Fix indentation on login component --- src/app/auth/login.component.ts | 62 ++++++++++++++++----------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/src/app/auth/login.component.ts b/src/app/auth/login.component.ts index 49ba758..b3d8f6d 100644 --- a/src/app/auth/login.component.ts +++ b/src/app/auth/login.component.ts @@ -14,50 +14,50 @@ export class LoginComponent implements OnInit { returnUrl: string; constructor( - private route: ActivatedRoute, - private http: Http, - private formBuilder: FormBuilder, - private router: Router, - private api: ApiService - ) { - this.signin = this.formBuilder.group({ - email: ['', [Validators.required]], - password: ['', [Validators.required]], - }); + private route: ActivatedRoute, + private http: Http, + private formBuilder: FormBuilder, + private router: Router, + private api: ApiService + ) { + this.signin = this.formBuilder.group({ + email: ['', [Validators.required]], + password: ['', [Validators.required]], + }); } ngOnInit() { - // reset login status - this.api - .logout() - .subscribe( - result => { - console.log('Logged out!'); - } - ); + // reset login status + this.api + .logout() + .subscribe( + result => { + console.log('Logged out!'); + } + ); 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'] || '/'; + // get return url from route parameters or default to '/' + this.returnUrl = this.route.snapshot.queryParams['returnUrl'] || '/'; } onSubmit() { console.log(this.signin.value); - this.api - .login(this.signin.value) - .subscribe( - result => { - console.log('logged in!'); - this.router.navigate([this.returnUrl]); - }, - error => { - console.log( error._body ); - } - ); + this.api + .login(this.signin.value) + .subscribe( + result => { + console.log('logged in!'); + this.router.navigate([this.returnUrl]); + }, + error => { + console.log( error._body ); + } + ); }