Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
313ae21b
Unverified
Commit
313ae21b
authored
Oct 28, 2023
by
Timothy Jaeryang Baek
Committed by
GitHub
Oct 28, 2023
Browse files
Merge pull request #37 from ollama-webui/dev
fix: empty prompt disabled
parents
73059e28
edac6f4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/routes/+page.svelte
src/routes/+page.svelte
+2
-0
No files found.
src/routes/+page.svelte
View file @
313ae21b
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment