From c274f132cbbf70b322284e09608e8f62f5598d65 Mon Sep 17 00:00:00 2001 From: Aleksander Grygier Date: Sat, 22 Nov 2025 01:35:02 +0100 Subject: [PATCH] refactor: Chat Form Submit component --- .../ChatFormActionSubmit.svelte | 59 +++++++++++++++++++ .../ChatFormActions/ChatFormActions.svelte | 20 ++++--- .../webui/src/lib/components/app/index.ts | 1 + 3 files changed, 71 insertions(+), 9 deletions(-) create mode 100644 tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionSubmit.svelte diff --git a/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionSubmit.svelte b/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionSubmit.svelte new file mode 100644 index 0000000000..28e7d73f38 --- /dev/null +++ b/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActionSubmit.svelte @@ -0,0 +1,59 @@ + + +{#snippet submitButton(props = {})} + +{/snippet} + +{#if tooltipLabel} + + + + {@render submitButton()} + + + +

{tooltipLabel}

+
+
+
+{:else} + {@render submitButton()} +{/if} diff --git a/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActions.svelte b/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActions.svelte index 25adf3a8ec..ce3528526f 100644 --- a/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActions.svelte +++ b/tools/server/webui/src/lib/components/app/chat/ChatForm/ChatFormActions/ChatFormActions.svelte @@ -1,9 +1,10 @@