From 920614f7dfa1e2aab70c2f7065d1e39caddc39d4 Mon Sep 17 00:00:00 2001 From: CarleyDiaz-Bitwarden <103955722+CarleyDiaz-Bitwarden@users.noreply.github.com> Date: Fri, 1 Jul 2022 13:55:32 -0400 Subject: [PATCH] Changes to use Form Fields --- apps/web/src/app/modules/shared.module.ts | 3 + .../import-export/org-export.component.ts | 4 +- apps/web/src/app/services/services.module.ts | 13 --- .../tools/import-export/export.component.html | 95 ++++++++++--------- .../tools/import-export/export.component.ts | 6 +- .../import-export/import-export.module.ts | 3 + .../tools/import-export/import.component.ts | 2 +- 7 files changed, 63 insertions(+), 63 deletions(-) diff --git a/apps/web/src/app/modules/shared.module.ts b/apps/web/src/app/modules/shared.module.ts index a8801e8196b..868e3cee587 100644 --- a/apps/web/src/app/modules/shared.module.ts +++ b/apps/web/src/app/modules/shared.module.ts @@ -61,6 +61,7 @@ import { BadgeModule, ButtonModule, CalloutModule, + FormFieldModule, MenuModule, SubmitButtonModule, } from "@bitwarden/components"; @@ -132,6 +133,7 @@ registerLocaleData(localeZhTw, "zh-TW"); BadgeModule, ButtonModule, MenuModule, + FormFieldModule, SubmitButtonModule, ], exports: [ @@ -149,6 +151,7 @@ registerLocaleData(localeZhTw, "zh-TW"); BadgeModule, ButtonModule, MenuModule, + FormFieldModule, SubmitButtonModule, ], providers: [DatePipe], diff --git a/apps/web/src/app/organizations/tools/import-export/org-export.component.ts b/apps/web/src/app/organizations/tools/import-export/org-export.component.ts index 1cdc7700680..2bc06b76daf 100644 --- a/apps/web/src/app/organizations/tools/import-export/org-export.component.ts +++ b/apps/web/src/app/organizations/tools/import-export/org-export.component.ts @@ -32,11 +32,11 @@ export class OrganizationExportComponent extends ExportComponent { policyService: PolicyService, logService: LogService, userVerificationService: UserVerificationService, - formBuilder: FormBuilder, modalService: ModalService, apiService: ApiService, stateService: StateService, modalConfig: ModalConfig, + formBuilder: FormBuilder, fileDownloadService: FileDownloadService ) { super( @@ -48,11 +48,11 @@ export class OrganizationExportComponent extends ExportComponent { policyService, logService, userVerificationService, - formBuilder, modalService, apiService, stateService, modalConfig, + formBuilder, fileDownloadService ); } diff --git a/apps/web/src/app/services/services.module.ts b/apps/web/src/app/services/services.module.ts index b89bb23c756..e508b255c11 100644 --- a/apps/web/src/app/services/services.module.ts +++ b/apps/web/src/app/services/services.module.ts @@ -104,19 +104,6 @@ import { WebFileDownloadService } from "./webFileDownload.service"; { provide: MessagingServiceAbstraction, useClass: BroadcasterMessagingService }, { provide: ModalServiceAbstraction, useClass: ModalService }, { provide: ModalConfigAbstraction, useClass: ModalConfig }, - { - provide: ImportServiceAbstraction, - useClass: ImportService, - deps: [ - CipherServiceAbstraction, - FolderServiceAbstraction, - ApiServiceAbstraction, - I18nServiceAbstraction, - CollectionServiceAbstraction, - PlatformUtilsServiceAbstraction, - CryptoServiceAbstraction, - ], - }, { provide: ExportServiceAbstraction, useClass: ExportService, diff --git a/apps/web/src/app/tools/import-export/export.component.html b/apps/web/src/app/tools/import-export/export.component.html index fc08a9437c5..2a52794b9b8 100644 --- a/apps/web/src/app/tools/import-export/export.component.html +++ b/apps/web/src/app/tools/import-export/export.component.html @@ -1,7 +1,6 @@
- - + + {{ "fileFormat" | i18n }} + +
@@ -79,51 +80,57 @@
- -
- -
- -
-
+ + {{ "filePassword" | i18n }} + +
+ +
+
+
{{ "exportPasswordDescription" | i18n }}

- -
- -
-
+
+ + {{ "confirmFilePassword" | i18n }} + + +
-
+
-
+