1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 10:33:57 +00:00

[SG-664] Add org name length validation to inputs (#4111)

* Add maxLength validator to org name field

* Disable next button if name has any error

* Only check org name value changes

* Add name length validator to normal create org flow
This commit is contained in:
Robyn MacCallum
2022-12-12 15:33:41 -05:00
committed by GitHub
parent bdfc2b0839
commit 9c0aa9e8d4
3 changed files with 9 additions and 3 deletions

View File

@@ -121,7 +121,7 @@ export class OrganizationPlansComponent implements OnInit, OnDestroy {
}
if (this.createOrganization) {
this.formGroup.controls.name.addValidators(Validators.required);
this.formGroup.controls.name.addValidators([Validators.required, Validators.maxLength(50)]);
this.formGroup.controls.billingEmail.addValidators(Validators.required);
}