From 25c0eca414fa1a9f99216486e665229fe96ca6dd Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 10 Jun 2024 21:47:25 -0700 Subject: [PATCH] feat: edit tool spinner --- src/lib/components/workspace/Tools.svelte | 7 +++++-- src/lib/components/workspace/Tools/ToolkitEditor.svelte | 4 ++-- src/routes/(app)/workspace/tools/edit/+page.svelte | 7 +++++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/lib/components/workspace/Tools.svelte b/src/lib/components/workspace/Tools.svelte index d8738c9fb..7d524b825 100644 --- a/src/lib/components/workspace/Tools.svelte +++ b/src/lib/components/workspace/Tools.svelte @@ -77,9 +77,12 @@ class=" flex space-x-4 cursor-pointer w-full px-3 py-2 dark:hover:bg-white/5 hover:bg-black/5 rounded-xl" >
- +
-
+
{tool.name}
diff --git a/src/lib/components/workspace/Tools/ToolkitEditor.svelte b/src/lib/components/workspace/Tools/ToolkitEditor.svelte index ef181d776..9e9685173 100644 --- a/src/lib/components/workspace/Tools/ToolkitEditor.svelte +++ b/src/lib/components/workspace/Tools/ToolkitEditor.svelte @@ -21,7 +21,7 @@ }; export let content = ''; - $: if (name) { + $: if (name && !edit) { id = name.replace(/\s+/g, '_').toLowerCase(); } @@ -96,7 +96,7 @@ /> +{:else} +
+
+ +
+
{/if}