"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "16a900630616f47ea18026150cad82d5e8008c01"
Commit 404aa62a authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: chat list issues

parent 9881022b
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
<div class=" my-2.5 text-sm font-medium">System Prompt</div> <div class=" my-2.5 text-sm font-medium">System Prompt</div>
<textarea <textarea
bind:value={system} bind:value={system}
class="w-full rounded p-4 text-sm dark:text-gray-300 dark:bg-gray-800 outline-none resize-none" class="w-full rounded-lg p-4 text-sm dark:text-gray-300 dark:bg-gray-850 outline-none resize-none"
rows="4" rows="4"
/> />
</div> </div>
......
...@@ -61,12 +61,16 @@ ...@@ -61,12 +61,16 @@
}; };
const editChatTitle = async (id, _title) => { const editChatTitle = async (id, _title) => {
title = _title; if (_title === '') {
toast.error('Title cannot be an empty string.');
await updateChatById(localStorage.token, id, { } else {
title: _title title = _title;
});
await chats.set(await getChatList(localStorage.token)); await updateChatById(localStorage.token, id, {
title: _title
});
await chats.set(await getChatList(localStorage.token));
}
}; };
const deleteChat = async (id) => { const deleteChat = async (id) => {
...@@ -388,6 +392,7 @@ ...@@ -388,6 +392,7 @@
show = false; show = false;
} }
}} }}
draggable="false"
> >
<div class=" flex self-center flex-1 w-full"> <div class=" flex self-center flex-1 w-full">
<div <div
......
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