fix(frontend): show file size in the download button label
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,8 @@ export function FileCard({ fileName, fileSize, jobId, initialError }) {
|
|||||||
)}
|
)}
|
||||||
{status === 'done' && (
|
{status === 'done' && (
|
||||||
<a className="download-button" href={downloadUrl(jobId)}>
|
<a className="download-button" href={downloadUrl(jobId)}>
|
||||||
<DownloadSimple size={20} weight="regular" /> {t('job.download')}
|
<DownloadSimple size={20} weight="regular" />
|
||||||
|
{t('job.download')} ({formatBytes(fileSize)})
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
{status === 'failed' && <span className="error">{errorMessage}</span>}
|
{status === 'failed' && <span className="error">{errorMessage}</span>}
|
||||||
|
|||||||
Reference in New Issue
Block a user