[develop]: Role-verification: Add relatve to route parameter.

This commit is contained in:
Konstantinos Triantafyllou 2024-03-07 10:27:30 +02:00
parent e0de892998
commit c33af181bb
1 changed files with 3 additions and 1 deletions

View File

@ -93,6 +93,8 @@ export class RoleVerificationComponent extends BaseComponent implements OnInit,
public userInfoLinkPrefix = '';
@Input()
public userInfoLink = null;
@Input()
public relativeTo: ActivatedRoute = this._route;
public user: User;
public verification: any;
public code: UntypedFormControl;
@ -150,7 +152,7 @@ export class RoleVerificationComponent extends BaseComponent implements OnInit,
'errorCode': LoginErrorCodes.NOT_LOGIN,
'redirectUrl': this._router.url
},
relativeTo: this._route
relativeTo: this.relativeTo
});
}
} else if(this.isMember) {