From 6cad2534423a6e781482fe50fe604c99d61e1b22 Mon Sep 17 00:00:00 2001 From: Daniel James Smith Date: Fri, 28 Oct 2022 15:09:07 +0200 Subject: [PATCH] Revert "[PS-1465] Fix #2806 - The "Import Data" page's file selector button cannot be translated (#3502)" (#3900) This reverts commit 768de03269882d0cd5f3b0d7803c819eaa219010. --- .../app/tools/import-export/import.component.html | 13 ------------- .../src/app/tools/import-export/import.component.ts | 6 ------ 2 files changed, 19 deletions(-) diff --git a/apps/web/src/app/tools/import-export/import.component.html b/apps/web/src/app/tools/import-export/import.component.html index 15c1109654..ba2eb69925 100644 --- a/apps/web/src/app/tools/import-export/import.component.html +++ b/apps/web/src/app/tools/import-export/import.component.html @@ -291,25 +291,12 @@
-
-
- - {{ this.fileSelected ? this.fileSelected.name : ("noFileChosen" | i18n) }} -
diff --git a/apps/web/src/app/tools/import-export/import.component.ts b/apps/web/src/app/tools/import-export/import.component.ts index 5c062b09fb..3f36223285 100644 --- a/apps/web/src/app/tools/import-export/import.component.ts +++ b/apps/web/src/app/tools/import-export/import.component.ts @@ -25,7 +25,6 @@ export class ImportComponent implements OnInit, OnDestroy { importOptions: ImportOption[]; format: ImportType = null; fileContents: string; - fileSelected: File; formPromise: Promise; loading = false; importBlockedByPolicy$ = this.policyService.policyAppliesToActiveUser$( @@ -185,11 +184,6 @@ export class ImportComponent implements OnInit, OnDestroy { }); } - setSelectedFile(event: Event) { - const fileInputEl = event.target; - this.fileSelected = fileInputEl.files.length > 0 ? fileInputEl.files[0] : null; - } - private async error(error: Error) { await Swal.fire({ heightAuto: false,