Commit 560dfd80 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac: explicit var name for ambiguous term payload

parent e7d8d493
...@@ -1174,18 +1174,21 @@ ...@@ -1174,18 +1174,21 @@
</div> </div>
{#if Object.keys(modelDownloadStatus).length > 0} {#if Object.keys(modelDownloadStatus).length > 0}
{#each Object.entries(modelDownloadStatus) as [modelName, payload]} {#each Object.keys(modelDownloadStatus) as model}
<div class="flex flex-col"> <div class="flex flex-col">
<div class="font-medium mb-1">{modelName}</div> <div class="font-medium mb-1">{modelDownloadStatus[model].modelName}</div>
<div class=""> <div class="">
<div <div
class="dark:bg-gray-600 bg-gray-500 text-xs font-medium text-gray-100 text-center p-0.5 leading-none rounded-full" class="dark:bg-gray-600 bg-gray-500 text-xs font-medium text-gray-100 text-center p-0.5 leading-none rounded-full"
style="width: {Math.max(15, payload.pullProgress ?? 0)}%" style="width: {Math.max(
15,
modelDownloadStatus[model].pullProgress ?? 0
)}%"
> >
{payload.pullProgress ?? 0}% {modelDownloadStatus[model].pullProgress ?? 0}%
</div> </div>
<div class="mt-1 text-xs dark:text-gray-500" style="font-size: 0.5rem;"> <div class="mt-1 text-xs dark:text-gray-500" style="font-size: 0.5rem;">
{payload.digest} {modelDownloadStatus[model].digest}
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment