1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-20 10:13:31 +00:00

[EC-1016][EC-1017][EC-1018] add validation to collection dialog (#4528)

* [EC-1016] add validation to collection dialog

* [EC-1017] add validation to members dialog

* [EC-1017] remove unused imports from members tab

* [EC-1017] move validator out of shared module

* [EC-1018] add validation to group modal
This commit is contained in:
Jake Fink
2023-01-25 11:03:09 -05:00
committed by GitHub
parent e3f1150fcb
commit d8689a20b5
10 changed files with 128 additions and 11 deletions

View File

@@ -227,7 +227,16 @@ export class GroupAddEditComponent implements OnInit, OnDestroy {
}
submit = async () => {
this.groupForm.markAllAsTouched();
if (this.groupForm.invalid) {
if (this.tabIndex !== GroupAddEditTabType.Info) {
this.platformUtilsService.showToast(
"error",
null,
this.i18nService.t("fieldOnTabRequiresAttention", this.i18nService.t("groupInfo"))
);
}
return;
}