mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
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 <djsmith85@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9c0aaf3cab
commit
28807a32d5
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user