diff --git a/apps/color-buddy/src/controls/AddColor.svelte b/apps/color-buddy/src/controls/AddColor.svelte index 1c4b79e..b5bf979 100644 --- a/apps/color-buddy/src/controls/AddColor.svelte +++ b/apps/color-buddy/src/controls/AddColor.svelte @@ -15,6 +15,9 @@ let requestState: "idle" | "loading" | "loaded" | "failed" = "idle"; function getColorForSearch(searchedString: string) { + if ($configStore.engine === "none") { + return; + } const allowedStates = new Set(["idle", "loaded", "failed"]); if (!allowedStates.has(requestState)) { return; diff --git a/apps/color-buddy/src/controls/Config.svelte b/apps/color-buddy/src/controls/Config.svelte index 563dc11..fabae1e 100644 --- a/apps/color-buddy/src/controls/Config.svelte +++ b/apps/color-buddy/src/controls/Config.svelte @@ -12,6 +12,7 @@ // "google", "openai", "anthropic", + "none", ] as string[]; const isMac = navigator.userAgent.indexOf("Mac OS X") !== -1; diff --git a/apps/color-buddy/src/controls/DesignPit.svelte b/apps/color-buddy/src/controls/DesignPit.svelte index 5a42a1d..c935f51 100644 --- a/apps/color-buddy/src/controls/DesignPit.svelte +++ b/apps/color-buddy/src/controls/DesignPit.svelte @@ -1,6 +1,7 @@