From 799981d1cbe1821817f0bf6f117395d983e8e212 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 16 Aug 2025 16:19:24 -0600 Subject: [PATCH] doc: Add comment about similar code. --- src/components/DataExportSection.vue | 2 ++ src/views/ContactsView.vue | 1 + 2 files changed, 3 insertions(+) diff --git a/src/components/DataExportSection.vue b/src/components/DataExportSection.vue index 3b5c6de3..7e16dffe 100644 --- a/src/components/DataExportSection.vue +++ b/src/components/DataExportSection.vue @@ -168,6 +168,8 @@ export default class DataExportSection extends Vue { * @throws {Error} If export fails */ public async exportDatabase(): Promise { + // Note that similar code is in ContactsView.vue exportContactData() + if (this.isExporting) { return; // Prevent multiple simultaneous exports } diff --git a/src/views/ContactsView.vue b/src/views/ContactsView.vue index a6533201..fef7713a 100644 --- a/src/views/ContactsView.vue +++ b/src/views/ContactsView.vue @@ -1296,6 +1296,7 @@ export default class ContactsView extends Vue { * Uses platform service to handle platform-specific export logic */ private async exportContactData(): Promise { + // Note that similar code is in DataExportSection.vue exportDatabase() try { // Fetch all contacts from database const allContacts = await this.$contacts();