mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-02 21:50:34 +00:00
ui: welcome screen, queue input, interverntions
This commit is contained in:
parent
c2ca0de83d
commit
4aaf7af34a
6 changed files with 173 additions and 10 deletions
|
|
@ -8,6 +8,17 @@ import { store as attachmentsStore } from "/components/chat/attachments/attachme
|
|||
const model = {
|
||||
paused: false,
|
||||
|
||||
get inputPlaceholder() {
|
||||
const input = document.getElementById("chat-input");
|
||||
const hasTypedText = !!input?.value?.trim();
|
||||
const hasAttachments = (attachmentsStore?.attachments?.length || 0) > 0;
|
||||
const hasQueue = !!messageQueueStore?.hasQueue;
|
||||
|
||||
if (hasQueue && !hasTypedText && !hasAttachments)
|
||||
return "Press Enter to send queued messages";
|
||||
return "Type your message here...";
|
||||
},
|
||||
|
||||
// Computed: send button icon type
|
||||
get sendButtonIcon() {
|
||||
const input = document.getElementById("chat-input");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue