{{ "inviteUserDesc" | i18n }}
diff --git a/apps/web/src/app/organizations/members/components/member-dialog/member-dialog.component.ts b/apps/web/src/app/organizations/members/components/member-dialog/member-dialog.component.ts index 18a004555d..06596e101d 100644 --- a/apps/web/src/app/organizations/members/components/member-dialog/member-dialog.component.ts +++ b/apps/web/src/app/organizations/members/components/member-dialog/member-dialog.component.ts @@ -3,8 +3,6 @@ import { Component, Inject, OnDestroy, OnInit } from "@angular/core"; import { FormBuilder, Validators } from "@angular/forms"; import { combineLatest, of, shareReplay, Subject, switchMap, takeUntil } from "rxjs"; -import { ApiService } from "@bitwarden/common/abstractions/api.service"; -import { CollectionService } from "@bitwarden/common/abstractions/collection.service"; import { I18nService } from "@bitwarden/common/abstractions/i18n.service"; import { OrganizationUserService } from "@bitwarden/common/abstractions/organization-user/organization-user.service"; import { OrganizationService } from "@bitwarden/common/abstractions/organization/organization.service.abstraction"; @@ -33,6 +31,8 @@ import { PermissionMode, } from "../../../shared/components/access-selector"; +import { commaSeparatedEmails } from "./validators/comma-separated-emails.validator"; + export enum MemberDialogTab { Role = 0, Groups = 1, @@ -75,7 +75,7 @@ export class MemberDialogComponent implements OnInit, OnDestroy { protected groupAccessItems: AccessItemView[] = []; protected tabIndex: MemberDialogTab; protected formGroup = this.formBuilder.group({ - emails: ["", [Validators.required]], + emails: ["", [Validators.required, commaSeparatedEmails]], type: OrganizationUserType.User, accessAllCollections: false, access: [[] as AccessItemValue[]], @@ -117,9 +117,7 @@ export class MemberDialogComponent implements OnInit, OnDestroy { constructor( @Inject(DIALOG_DATA) protected params: MemberDialogParams, private dialogRef: DialogRef