feat: edit tool spinner

This commit is contained in:
Timothy J. Baek
2024-06-10 21:47:25 -07:00
parent ca8be1ee4a
commit 25c0eca414
3 changed files with 14 additions and 4 deletions

View File

@@ -21,7 +21,7 @@
};
export let content = '';
$: if (name) {
$: if (name && !edit) {
id = name.replace(/\s+/g, '_').toLowerCase();
}
@@ -96,7 +96,7 @@
/>
<input
class="w-full px-3 py-2 text-sm font-medium bg-gray-50 dark:bg-gray-850 dark:text-gray-200 rounded-lg outline-none"
class="w-full px-3 py-2 text-sm font-medium disabled:text-gray-300 dark:disabled:text-gray-700 bg-gray-50 dark:bg-gray-850 dark:text-gray-200 rounded-lg outline-none"
type="text"
placeholder="Toolkit ID (e.g. my_toolkit)"
bind:value={id}