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();