Update box text

This commit is contained in:
Jake Barnby
2025-11-25 14:13:56 +13:00
parent 751b3cd02f
commit b354f450ae
+5 -13
View File
@@ -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 ? `<b>${tableName}</b>` : '';
const bucket = bucketName ? `<b>${bucketName}</b>` : '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 @@
<div
class="progress-bar-top-line u-flex u-gap-8 u-main-space-between">
<Typography.Text>
{@html text(
value.status,
value.table,
value.bucketName ?? 'bucket'
)}
{@html text(value.status, value.table)}
</Typography.Text>
{#if value.status === 'failed' && value.errors && value.errors.length > 0}
<button