From b354f450aef04bec67d2b95be743fbdb2b33a497 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 25 Nov 2025 14:13:56 +1300 Subject: [PATCH] Update box text --- src/lib/components/csvExportBox.svelte | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/src/lib/components/csvExportBox.svelte b/src/lib/components/csvExportBox.svelte index 2d6ad2994..b0430e42c 100644 --- a/src/lib/components/csvExportBox.svelte +++ b/src/lib/components/csvExportBox.svelte @@ -27,10 +27,6 @@ function downloadExportedFile(downloadUrl: string) { if (!downloadUrl) { - addNotification({ - type: 'error', - message: 'Download URL not found for this export' - }); return; } @@ -164,15 +160,15 @@ } } - function text(status: string, tableName = '', bucketName = '') { + function text(status: string, tableName = '') { const table = tableName ? `${tableName}` : ''; - const bucket = bucketName ? `${bucketName}` : 'bucket'; switch (status) { case 'completed': + return `Exporting ${table} completed`; case 'failed': - return `Export to ${bucket} ${status}`; + return `Exporting ${table} failed`; case 'processing': - return `Exporting ${table} to ${bucket}`; + return `Exporting ${table}`; default: return 'Preparing export...'; } @@ -234,11 +230,7 @@
- {@html text( - value.status, - value.table, - value.bucketName ?? 'bucket' - )} + {@html text(value.status, value.table)} {#if value.status === 'failed' && value.errors && value.errors.length > 0}