web: simplify CobaltFileReference type

This commit is contained in:
jj
2025-05-03 13:23:05 +00:00
parent 95ab81eb10
commit 1ef8391639
12 changed files with 28 additions and 43 deletions

View File

@@ -90,7 +90,7 @@
return $t("queue.state.starting");
case "done":
return formatFileSize(info.resultFile?.file?.size);
return formatFileSize(info.resultFile?.size);
case "error":
return !retrying ? info.errorCode : $t("queue.state.retrying");
@@ -162,7 +162,7 @@
{#if info.state === "done" && info.resultFile}
<button
class="button action-button"
on:click={() => download(info.resultFile.file)}
on:click={() => download(info.resultFile)}
>
<IconDownload />
</button>