mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
minor updates to comments for clarity
This commit is contained in:
@@ -364,7 +364,7 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
|
||||
|
||||
private async webOnInit(): Promise<void> {
|
||||
this.activatedRoute.queryParams.pipe(first(), takeUntil(this.destroy$)).subscribe((qParams) => {
|
||||
// If there is an query parameter called 'org', set previousUrl to `/create-organization?org=paramValue`
|
||||
// If there is a parameter called 'org', set previousUrl to `/create-organization?org=<paramValue>`
|
||||
if (qParams.org != null) {
|
||||
const route = this.router.createUrlTree(["create-organization"], {
|
||||
queryParams: { plan: qParams.org },
|
||||
@@ -373,9 +373,8 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
/**
|
||||
* If there is a query parameter called 'sponsorshipToken', that means they are coming
|
||||
* from an email for sponsoring a families organization. If so, then set the prevousUrl
|
||||
* to `/setup/families-for-enterprise?token=paramValue`
|
||||
* If there is a parameter called 'sponsorshipToken', they are coming from an email for sponsoring a families organization.
|
||||
* Therefore set the prevousUrl to `/setup/families-for-enterprise?token=<paramValue>`
|
||||
*/
|
||||
if (qParams.sponsorshipToken != null) {
|
||||
const route = this.router.createUrlTree(["setup/families-for-enterprise"], {
|
||||
|
||||
Reference in New Issue
Block a user