Skip to content

Commit b354f45

Browse files
committed
Update box text
1 parent 751b3cd commit b354f45

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

src/lib/components/csvExportBox.svelte

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727
2828
function downloadExportedFile(downloadUrl: string) {
2929
if (!downloadUrl) {
30-
addNotification({
31-
type: 'error',
32-
message: 'Download URL not found for this export'
33-
});
3430
return;
3531
}
3632
@@ -164,15 +160,15 @@
164160
}
165161
}
166162
167-
function text(status: string, tableName = '', bucketName = '') {
163+
function text(status: string, tableName = '') {
168164
const table = tableName ? `<b>${tableName}</b>` : '';
169-
const bucket = bucketName ? `<b>${bucketName}</b>` : 'bucket';
170165
switch (status) {
171166
case 'completed':
167+
return `Exporting ${table} completed`;
172168
case 'failed':
173-
return `Export to ${bucket} ${status}`;
169+
return `Exporting ${table} failed`;
174170
case 'processing':
175-
return `Exporting ${table} to ${bucket}`;
171+
return `Exporting ${table}`;
176172
default:
177173
return 'Preparing export...';
178174
}
@@ -234,11 +230,7 @@
234230
<div
235231
class="progress-bar-top-line u-flex u-gap-8 u-main-space-between">
236232
<Typography.Text>
237-
{@html text(
238-
value.status,
239-
value.table,
240-
value.bucketName ?? 'bucket'
241-
)}
233+
{@html text(value.status, value.table)}
242234
</Typography.Text>
243235
{#if value.status === 'failed' && value.errors && value.errors.length > 0}
244236
<button

0 commit comments

Comments
 (0)