1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

stub alternate layout support for register page (#550)

This commit is contained in:
Kyle Spearrin
2020-06-04 14:12:37 -04:00
committed by GitHub
parent d669d43fe4
commit 2b0c92a4ea
2 changed files with 122 additions and 92 deletions

View File

@@ -27,6 +27,7 @@ import { PolicyData } from 'jslib/models/data/policyData';
export class RegisterComponent extends BaseRegisterComponent {
showCreateOrgMessage = false;
showTerms = true;
layout = '';
enforcedPolicyOptions: MasterPasswordPolicyOptions;
private policies: Policy[];
@@ -73,6 +74,9 @@ export class RegisterComponent extends BaseRegisterComponent {
this.stateService.save('loginRedirect',
{ route: '/settings/create-organization', qParams: { plan: qParams.org } });
}
if (qParams.layout != null) {
this.layout = qParams.layout;
}
if (queryParamsSub != null) {
queryParamsSub.unsubscribe();
}