"...git@developer.sourcefind.cn:modelzoo/solov2-pytorch.git" did not exist on "554e20a2e77863a01bb870f528bc835603f4fab4"
Commit 48ac0d99 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: empty prompt disabled

parent a1544dbc
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
import { API_BASE_URL as BUILD_TIME_API_BASE_URL } from '$lib/constants'; import { API_BASE_URL as BUILD_TIME_API_BASE_URL } from '$lib/constants';
import { onMount, tick } from 'svelte'; import { onMount, tick } from 'svelte';
import Navbar from '$lib/components/layout/Navbar.svelte'; import Navbar from '$lib/components/layout/Navbar.svelte';
import SettingsModal from '$lib/components/chat/SettingsModal.svelte'; import SettingsModal from '$lib/components/chat/SettingsModal.svelte';
...@@ -1090,6 +1091,7 @@ ...@@ -1090,6 +1091,7 @@
? 'bg-emerald-600 text-gray-100 hover:bg-emerald-700 ' ? 'bg-emerald-600 text-gray-100 hover:bg-emerald-700 '
: 'text-gray-600 disabled'} transition rounded p-2" : 'text-gray-600 disabled'} transition rounded p-2"
type="submit" type="submit"
disabled={prompt === ''}
> >
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment