Skip to content

Commit 8552cd7

Browse files
committed
Formatted code
1 parent 9a3c681 commit 8552cd7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/app/login/view/login-view/login-view.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import { LoginUser } from '@app/login/model/login-user';
1111
})
1212
export class LoginViewComponent implements OnInit {
1313

14-
private returnUrl: string = '';
15-
1614
public loading = false;
1715

1816
public error = '';
1917

18+
private returnUrl: string = '';
19+
2020
constructor(
2121
private route: ActivatedRoute,
2222
private router: Router,
@@ -28,6 +28,7 @@ export class LoginViewComponent implements OnInit {
2828
if (this.authenticationService.getUser().logged) {
2929
this.router.navigate(['/']);
3030
}
31+
3132
// get return url from route parameters or default to '/'
3233
this.returnUrl = this.route.snapshot.queryParams['returnUrl'] || '/';
3334
}

0 commit comments

Comments
 (0)