From 9b84b28a78b0855e2315075974b3fe9ea7ea28a4 Mon Sep 17 00:00:00 2001 From: Jose Olarte III Date: Wed, 19 Nov 2025 19:26:36 +0800 Subject: [PATCH] refactor: move Import Contacts section to DataExportSection component - Move Import Contacts UI section from AccountViewView to DataExportSection - Consolidate import/export functionality in a single component - Move related methods: uploadImportFile, showContactImport, checkContactImports - Convert module-level ref to component property (inputImportFileName) - Remove unused imports (ref, ImportContent) from AccountViewView - Rename "Download Contacts" button to "Export Contacts" - Improve import UI styling with full-width file input and button --- src/components/DataExportSection.vue | 114 ++++++++++++++++++++++++++- src/views/AccountViewView.vue | 109 +------------------------ 2 files changed, 113 insertions(+), 110 deletions(-) diff --git a/src/components/DataExportSection.vue b/src/components/DataExportSection.vue index 737f8f2eba..1a7383e05b 100644 --- a/src/components/DataExportSection.vue +++ b/src/components/DataExportSection.vue @@ -30,7 +30,7 @@ messages * - Conditional UI based on platform capabilities * * @component * :class="exportButtonClasses" @click="exportDatabase()" > - {{ isExporting ? "Exporting..." : "Download Contacts" }} + {{ isExporting ? "Exporting..." : "Export Contacts" }}
+ + +
+

Import Contacts

+ +
+ + +
+ + +
+
+
+
diff --git a/src/views/AccountViewView.vue b/src/views/AccountViewView.vue index 9b7efd3ed7..12ff331ea0 100644 --- a/src/views/AccountViewView.vue +++ b/src/views/AccountViewView.vue @@ -375,45 +375,6 @@ Switch Identifier -
-

Import Contacts

- -
- - -
- -
- -
-
-
-
-
-