From 53288d2087ba686a6ed79e96f00970cdd73f37cc Mon Sep 17 00:00:00 2001 From: Justin Baur <19896123+justindbaur@users.noreply.github.com> Date: Thu, 29 Dec 2022 16:45:17 -0500 Subject: [PATCH] Add Provider Filter to Browser Vault Select (#4322) --- apps/browser/src/popup/vault/vault-select.component.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/browser/src/popup/vault/vault-select.component.ts b/apps/browser/src/popup/vault/vault-select.component.ts index 5193f520ed..957e181ed9 100644 --- a/apps/browser/src/popup/vault/vault-select.component.ts +++ b/apps/browser/src/popup/vault/vault-select.component.ts @@ -16,7 +16,10 @@ import { import { BehaviorSubject, concatMap, map, merge, Observable, Subject, takeUntil } from "rxjs"; import { I18nService } from "@bitwarden/common/abstractions/i18n.service"; -import { OrganizationService } from "@bitwarden/common/abstractions/organization/organization.service.abstraction"; +import { + isNotProviderUser, + OrganizationService, +} from "@bitwarden/common/abstractions/organization/organization.service.abstraction"; import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service"; import { Organization } from "@bitwarden/common/models/domain/organization"; @@ -100,7 +103,9 @@ export class VaultSelectComponent implements OnInit, OnDestroy { async ngOnInit() { this.organizations$ = this.organizationService.organizations$ .pipe(takeUntil(this._destroy)) - .pipe(map((orgs) => orgs.sort((a, b) => a.name.localeCompare(b.name)))); + .pipe( + map((orgs) => orgs.filter(isNotProviderUser).sort((a, b) => a.name.localeCompare(b.name))) + ); this.organizations$ .pipe(