forked from open-webui/open-webui
feat: toggle settings shortcut added
This commit is contained in:
parent
b916f1b07d
commit
7ffc1902a9
3 changed files with 28 additions and 3 deletions
|
@ -6,8 +6,8 @@
|
|||
export let disabled = false;
|
||||
|
||||
const saveDefaultModel = () => {
|
||||
const hasEmptyModel = selectedModels.filter(it => it === '');
|
||||
if(hasEmptyModel.length){
|
||||
const hasEmptyModel = selectedModels.filter((it) => it === '');
|
||||
if (hasEmptyModel.length) {
|
||||
toast.error('Choose a model before saving...');
|
||||
return;
|
||||
}
|
||||
|
@ -88,8 +88,9 @@
|
|||
{#if selectedModelIdx === 0}
|
||||
<button
|
||||
class=" self-center dark:hover:text-gray-300"
|
||||
id="open-settings-button"
|
||||
on:click={async () => {
|
||||
await showSettings.set(true);
|
||||
await showSettings.set(!$showSettings);
|
||||
}}
|
||||
>
|
||||
<svg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue