mirror of
https://github.com/open-webui/open-webui
synced 2025-02-24 06:06:14 +00:00
refac: disable empty model id
This commit is contained in:
parent
da6535eeb4
commit
c5ef53a09f
@ -185,6 +185,10 @@
|
||||
<button
|
||||
type="button"
|
||||
on:click={() => {
|
||||
if (selectedModelId === '') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (defaultModelIds.includes(selectedModelId)) {
|
||||
return;
|
||||
}
|
||||
@ -209,7 +213,7 @@
|
||||
showResetModal = true;
|
||||
}}
|
||||
>
|
||||
{$i18n.t('Delete All Models')}
|
||||
{$i18n.t('Reset All Models')}
|
||||
</button>
|
||||
</Tooltip>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user