From 400748b9a19814d225781419161560207e9ad85c Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Sun, 6 Jul 2025 02:47:30 +0000 Subject: [PATCH] fix: Resolve contact export errors in DataExportSection - Fix ref timing issue by always rendering download link element - Convert notify helper to getter to ensure $notify availability - Add proper error handling and resource cleanup for blob URLs - Improve user feedback with better error messages - Add comprehensive documentation and security considerations Resolves: TypeError on downloadLink.click() and notify function errors --- src/components/DataExportSection.vue | 46 +++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/src/components/DataExportSection.vue b/src/components/DataExportSection.vue index cfbc2dea..a5c31ace 100644 --- a/src/components/DataExportSection.vue +++ b/src/components/DataExportSection.vue @@ -1,9 +1,12 @@ /** * Data Export Section Component * * Provides UI and functionality for exporting user data and backing up identifier seeds. * Includes buttons for seed backup and database export, with platform-specific download instructions. * * -@component * @displayName DataExportSection * @example * ```vue * +Features: * - Platform-specific export handling (web vs. native) * - Proper +resource cleanup for blob URLs * - Robust error handling with user-friendly +messages * - Conditional UI based on platform capabilities * * @component * +@displayName DataExportSection * @example * ```vue * -* ``` */ +* ``` * * @author Matthew Raymer * @since 2025-01-25 * @version 1.1.0 */