diff --git a/role-verification/role-verification.component.ts b/role-verification/role-verification.component.ts index 1113c994..bb7f61fa 100644 --- a/role-verification/role-verification.component.ts +++ b/role-verification/role-verification.component.ts @@ -104,12 +104,12 @@ export class RoleVerificationComponent implements OnInit, OnDestroy, AfterViewIn ngAfterViewInit() { this.subscriptions.push(this.userManagementService.getUserInfo().subscribe(user => { this.user = user; - if (this.user) { - if(this.paramsSubscription instanceof Subscription) { - this.paramsSubscription.unsubscribe(); - } - this.paramsSubscription = this.route.queryParams.subscribe(params => { - if (params && params['verify']) { + if (this.paramsSubscription instanceof Subscription) { + this.paramsSubscription.unsubscribe(); + } + this.paramsSubscription = this.route.queryParams.subscribe(params => { + if (params && params['verify']) { + if (this.user) { this.subscriptions.push(this.userRegistryService.getInvitation(params['verify']).subscribe(verification => { this.verification = verification; if (this.user.email === this.verification.email.toLowerCase() && this.id === this.verification.entity && this.type === this.verification.type) { @@ -126,21 +126,21 @@ export class RoleVerificationComponent implements OnInit, OnDestroy, AfterViewIn }, error => { this.openErrorModal(); })); + } else { + this.router.navigate(['/user-info'], { + queryParams: { + 'errorCode': LoginErrorCodes.NOT_LOGIN, + 'redirectUrl': this.router.url + } + }); } - }); - } else { - this.router.navigate(['/user-info'], { - queryParams: { - 'errorCode': LoginErrorCodes.NOT_LOGIN, - 'redirectUrl': this.router.url - } - }); - } + } + }); })); } ngOnDestroy() { - if(this.paramsSubscription instanceof Subscription) { + if (this.paramsSubscription instanceof Subscription) { this.paramsSubscription.unsubscribe(); } this.subscriptions.forEach(subscription => { diff --git a/searchPages/searchUtils/advancedSearchForm.component.html b/searchPages/searchUtils/advancedSearchForm.component.html index c2954641..2f922846 100644 --- a/searchPages/searchUtils/advancedSearchForm.component.html +++ b/searchPages/searchUtils/advancedSearchForm.component.html @@ -17,117 +17,128 @@
-
- - - - - - - - - - - - - - - - - -
Searching FieldsTerms
-
-
-
-
-
-
- - -
- - -
- - - - - - - - - - - Yes
-
- - No
-
-
-
- -
- -
-
- -
-
-
- Please check your from date -
-
- Please check your to date -
-
- Please check your dates -
-
-
+
+
+
+
+ + + + + + + + + + + + + + + + + +
Searching FieldsTerms
+
+
+
+
+
+
+ + +
+ + +
+ + + + + + + + + + + Yes
+
+ + No
+
+
+
+
+ +
+ +
+
+ Please check your from date +
+
+ Please check your to date +
+
+ Please check your dates +
+
+
+
+
+
+ +
+
diff --git a/searchPages/searchUtils/newSearchPage.component.html b/searchPages/searchUtils/newSearchPage.component.html index c330844b..6e3c1081 100644 --- a/searchPages/searchUtils/newSearchPage.component.html +++ b/searchPages/searchUtils/newSearchPage.component.html @@ -129,7 +129,7 @@
-
+