Emit event from searchControl in ctor (#10398)

This commit is contained in:
Alex Morask 2024-08-05 14:43:28 -04:00 committed by GitHub
parent 2c5c96094c
commit 2ea691e81c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 7 deletions

View File

@ -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<ProviderUser> {
protected statusType = OrganizationUserStatusType;
protected statusType = ProviderUserStatusType;
}
@Component({
@ -92,7 +88,7 @@ export class MembersComponent extends BaseMembersComponent<ProviderUser> {
])
.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;