From 28807a32d58f5fd8e593c3cbbfe39eb7993dff36 Mon Sep 17 00:00:00 2001 From: Daniel James Smith <2670567+djsmith85@users.noreply.github.com> Date: Fri, 17 Oct 2025 22:32:52 +0200 Subject: [PATCH] Fix provider for org-import.component (#16925) With the introduction of the ImportMetadataService for all import component, the DI setup was missing for th org-import.component Co-authored-by: Daniel James Smith --- .../app/tools/import/org-import.component.ts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/tools/import/org-import.component.ts b/apps/web/src/app/tools/import/org-import.component.ts index 3e86f3ce1b9..4bc348f8769 100644 --- a/apps/web/src/app/tools/import/org-import.component.ts +++ b/apps/web/src/app/tools/import/org-import.component.ts @@ -10,8 +10,17 @@ import { import { AccountService } from "@bitwarden/common/auth/abstractions/account.service"; import { getUserId } from "@bitwarden/common/auth/services/account.service"; import { isId, OrganizationId } from "@bitwarden/common/types/guid"; -import { ImportCollectionServiceAbstraction } from "@bitwarden/importer-core"; -import { ImportComponent } from "@bitwarden/importer-ui"; +import { + DefaultImportMetadataService, + ImportCollectionServiceAbstraction, + ImportMetadataServiceAbstraction, +} from "@bitwarden/importer-core"; +import { + ImportComponent, + ImporterProviders, + SYSTEM_SERVICE_PROVIDER, +} from "@bitwarden/importer-ui"; +import { safeProvider } from "@bitwarden/ui-common"; import { HeaderModule } from "../../layouts/header/header.module"; import { SharedModule } from "../../shared"; @@ -22,6 +31,12 @@ import { ImportCollectionAdminService } from "./import-collection-admin.service" templateUrl: "org-import.component.html", imports: [SharedModule, ImportComponent, HeaderModule], providers: [ + ...ImporterProviders, + safeProvider({ + provide: ImportMetadataServiceAbstraction, + useClass: DefaultImportMetadataService, + deps: [SYSTEM_SERVICE_PROVIDER], + }), { provide: ImportCollectionServiceAbstraction, useClass: ImportCollectionAdminService,