Skip to content

Commit a3ef8b2

Browse files
committed
fix: refactor FILEBEAT_PLATFORMS creation and improve platform command structure
1 parent 5bf75e8 commit a3ef8b2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/app/shared/components/auth/login/login.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,13 @@ export class LoginComponent implements OnInit {
5858
}
5959

6060
ngOnInit() {
61+
this.initForm();
6162
this.apiServiceCheckerService.isOnlineApi$.subscribe(result => {
6263
if (result) {
6364
this.activatedRoute.queryParams.subscribe(params => {
6465
if (params.token) {
65-
this.loadingLogin = false;
66-
this.loginService.loginWithToken(params.token, true).then(() => {
66+
this.loadingLogin = false;
67+
this.loginService.loginWithToken(params.token, true).then(() => {
6768
this.loadingLogin = false;
6869
this.isInternalNavigation = true;
6970
this.startInternalNavigation(params);
@@ -75,7 +76,6 @@ export class LoginComponent implements OnInit {
7576
this.startInternalNavigation(params);
7677
});
7778
} else {
78-
this.initForm();
7979
this.loadingAuth = false;
8080
}
8181
});

0 commit comments

Comments
 (0)