mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-18 15:47:57 +01:00
Fix the maxlength org name bug (#12397)
This commit is contained in:
parent
1d874b447e
commit
d1fe72a4ab
@ -9969,5 +9969,8 @@
|
||||
},
|
||||
"domainClaimed": {
|
||||
"message": "Domain claimed"
|
||||
},
|
||||
"organizationNameMaxLength": {
|
||||
"message": "Organization name cannot exceed 50 characters."
|
||||
}
|
||||
}
|
||||
|
@ -43,6 +43,14 @@
|
||||
{{ "organizationName" | i18n }}
|
||||
</bit-label>
|
||||
<input type="text" bitInput formControlName="organizationName" />
|
||||
<bit-error-summary
|
||||
*ngIf="
|
||||
formGroup.get('organizationName').errors?.['maxLength'] &&
|
||||
formGroup.get('organizationName').touched
|
||||
"
|
||||
>
|
||||
{{ "organizationNameMaxLength" | i18n }}
|
||||
</bit-error-summary>
|
||||
</bit-form-field>
|
||||
<bit-form-field>
|
||||
<bit-label>
|
||||
|
@ -47,7 +47,7 @@ export class CreateClientDialogComponent implements OnInit {
|
||||
protected discountPercentage: number;
|
||||
protected formGroup = new FormGroup({
|
||||
clientOwnerEmail: new FormControl<string>("", [Validators.required, Validators.email]),
|
||||
organizationName: new FormControl<string>("", [Validators.required]),
|
||||
organizationName: new FormControl<string>("", [Validators.required, Validators.maxLength(50)]),
|
||||
seats: new FormControl<number>(null, [Validators.required, Validators.min(1)]),
|
||||
});
|
||||
protected loading = true;
|
||||
|
Loading…
Reference in New Issue
Block a user