feat: toggle settings shortcut added

This commit is contained in:
Timothy J. Baek 2023-12-29 23:35:08 -08:00
parent b916f1b07d
commit 7ffc1902a9
3 changed files with 28 additions and 3 deletions

View file

@ -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