[develop]: Role-verification: Add relatve to route parameter.
This commit is contained in:
parent
e0de892998
commit
c33af181bb
|
@ -93,6 +93,8 @@ export class RoleVerificationComponent extends BaseComponent implements OnInit,
|
||||||
public userInfoLinkPrefix = '';
|
public userInfoLinkPrefix = '';
|
||||||
@Input()
|
@Input()
|
||||||
public userInfoLink = null;
|
public userInfoLink = null;
|
||||||
|
@Input()
|
||||||
|
public relativeTo: ActivatedRoute = this._route;
|
||||||
public user: User;
|
public user: User;
|
||||||
public verification: any;
|
public verification: any;
|
||||||
public code: UntypedFormControl;
|
public code: UntypedFormControl;
|
||||||
|
@ -150,7 +152,7 @@ export class RoleVerificationComponent extends BaseComponent implements OnInit,
|
||||||
'errorCode': LoginErrorCodes.NOT_LOGIN,
|
'errorCode': LoginErrorCodes.NOT_LOGIN,
|
||||||
'redirectUrl': this._router.url
|
'redirectUrl': this._router.url
|
||||||
},
|
},
|
||||||
relativeTo: this._route
|
relativeTo: this.relativeTo
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else if(this.isMember) {
|
} else if(this.isMember) {
|
||||||
|
|
Loading…
Reference in New Issue