mirror of
https://github.com/open-webui/open-webui
synced 2024-11-21 23:57:51 +00:00
enh: reintroduce update all ollama models feature
This commit is contained in:
parent
e3b968de26
commit
dd5e500e01
@ -527,8 +527,37 @@
|
|||||||
<Modal size="sm" bind:show>
|
<Modal size="sm" bind:show>
|
||||||
<div>
|
<div>
|
||||||
<div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
|
<div class=" flex justify-between dark:text-gray-100 px-5 pt-4 pb-2">
|
||||||
<div class=" text-lg font-medium self-center font-primary">
|
<div
|
||||||
{$i18n.t('Manage Ollama')}
|
class="flex w-full justify-between items-center text-lg font-medium self-center font-primary"
|
||||||
|
>
|
||||||
|
<div class=" flex-shrink-0">
|
||||||
|
{$i18n.t('Manage Ollama')}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<Tooltip content="Update All Models" placement="top">
|
||||||
|
<button
|
||||||
|
class="p-2.5 flex gap-2 items-center bg-transparent rounded-lg transition"
|
||||||
|
on:click={() => {
|
||||||
|
updateModelsHandler();
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 16 16"
|
||||||
|
fill="currentColor"
|
||||||
|
class="w-4 h-4"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M7 1a.75.75 0 0 1 .75.75V6h-1.5V1.75A.75.75 0 0 1 7 1ZM6.25 6v2.94L5.03 7.72a.75.75 0 0 0-1.06 1.06l2.5 2.5a.75.75 0 0 0 1.06 0l2.5-2.5a.75.75 0 1 0-1.06-1.06L7.75 8.94V6H10a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2.25Z"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M4.268 14A2 2 0 0 0 6 15h6a2 2 0 0 0 2-2v-3a2 2 0 0 0-1-1.732V11a3 3 0 0 1-3 3H4.268Z"
|
||||||
|
/>
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
</Tooltip>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
class="self-center"
|
class="self-center"
|
||||||
@ -554,6 +583,12 @@
|
|||||||
<div class=" flex flex-col w-full">
|
<div class=" flex flex-col w-full">
|
||||||
<div>
|
<div>
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
|
{#if updateModelId}
|
||||||
|
<div class="text-xs">
|
||||||
|
Updating "{updateModelId}" {updateProgress ? `(${updateProgress}%)` : ''}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class=" mb-2 text-sm font-medium">
|
<div class=" mb-2 text-sm font-medium">
|
||||||
{$i18n.t('Pull a model from Ollama.com')}
|
{$i18n.t('Pull a model from Ollama.com')}
|
||||||
|
Loading…
Reference in New Issue
Block a user