From 2ea691e81cd11f1eadbe29999597b8cccac93539 Mon Sep 17 00:00:00 2001 From: Alex Morask <144709477+amorask-bitwarden@users.noreply.github.com> Date: Mon, 5 Aug 2024 14:43:28 -0400 Subject: [PATCH] Emit event from searchControl in ctor (#10398) --- .../providers/manage/members.component.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/bitwarden_license/bit-web/src/app/admin-console/providers/manage/members.component.ts b/bitwarden_license/bit-web/src/app/admin-console/providers/manage/members.component.ts index 247297ff96..3e9856638e 100644 --- a/bitwarden_license/bit-web/src/app/admin-console/providers/manage/members.component.ts +++ b/bitwarden_license/bit-web/src/app/admin-console/providers/manage/members.component.ts @@ -9,11 +9,7 @@ import { UserNamePipe } from "@bitwarden/angular/pipes/user-name.pipe"; import { ApiService } from "@bitwarden/common/abstractions/api.service"; import { OrganizationManagementPreferencesService } from "@bitwarden/common/admin-console/abstractions/organization-management-preferences/organization-management-preferences.service"; import { ProviderService } from "@bitwarden/common/admin-console/abstractions/provider.service"; -import { - OrganizationUserStatusType, - ProviderUserStatusType, - ProviderUserType, -} from "@bitwarden/common/admin-console/enums"; +import { ProviderUserStatusType, ProviderUserType } from "@bitwarden/common/admin-console/enums"; import { ProviderUserBulkRequest } from "@bitwarden/common/admin-console/models/request/provider/provider-user-bulk.request"; import { ProviderUserConfirmRequest } from "@bitwarden/common/admin-console/models/request/provider/provider-user-confirm.request"; import { ProviderUserUserDetailsResponse } from "@bitwarden/common/admin-console/models/response/provider/provider-user.response"; @@ -42,7 +38,7 @@ import { BulkRemoveDialogComponent } from "./dialogs/bulk-remove-dialog.componen type ProviderUser = ProviderUserUserDetailsResponse; class MembersTableDataSource extends PeopleTableDataSource { - protected statusType = OrganizationUserStatusType; + protected statusType = ProviderUserStatusType; } @Component({ @@ -92,7 +88,7 @@ export class MembersComponent extends BaseMembersComponent { ]) .pipe( switchMap(async ([urlParams, queryParams]) => { - this.searchControl.setValue(queryParams.search, { emitEvent: false }); + this.searchControl.setValue(queryParams.search); this.dataSource.filter = peopleFilter(queryParams.search, null); this.providerId = urlParams.providerId;