Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
560dfd80
Commit
560dfd80
authored
Jan 06, 2024
by
Timothy J. Baek
Browse files
refac: explicit var name for ambiguous term payload
parent
e7d8d493
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/lib/components/chat/SettingsModal.svelte
src/lib/components/chat/SettingsModal.svelte
+8
-5
No files found.
src/lib/components/chat/SettingsModal.svelte
View file @
560dfd80
...
...
@@ -1174,18 +1174,21 @@
</div>
{#if Object.keys(modelDownloadStatus).length > 0}
{#each Object.
entrie
s(modelDownloadStatus) as
[
model
Name, payload]
}
{#each Object.
key
s(modelDownloadStatus) as model}
<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="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 class="mt-1 text-xs dark:text-gray-500" style="font-size: 0.5rem;">
{
payload
.digest}
{
modelDownloadStatus[model]
.digest}
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment