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 15c1109654d..ba2eb69925c 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 5c062b09fb9..3f362232855 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,