diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 5950b90f6..86a3a6beb 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -1,7 +1,15 @@ + +
+
+
+
+ +
+ +
+
+
+ +
+
+ +
+ +
Listening...
+ +
+ +
+
+
+
+
diff --git a/src/lib/stores/index.ts b/src/lib/stores/index.ts index 9815f04de..781529f02 100644 --- a/src/lib/stores/index.ts +++ b/src/lib/stores/index.ts @@ -50,6 +50,7 @@ export const showSidebar = writable(false); export const showSettings = writable(false); export const showArchivedChats = writable(false); export const showChangelog = writable(false); +export const showCallOverlay = writable(false); export type Model = OpenAIModel | OllamaModel; diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index 5427b8295..f677098a2 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -24,7 +24,8 @@ tags, banners, showChangelog, - config + config, + showCallOverlay } from '$lib/stores'; import { REQUIRED_OLLAMA_VERSION, WEBUI_API_BASE_URL } from '$lib/constants'; import { compareVersion } from '$lib/utils'; @@ -39,6 +40,7 @@ import Help from '$lib/components/layout/Help.svelte'; import AccountPending from '$lib/components/layout/Overlay/AccountPending.svelte'; import { error } from '@sveltejs/kit'; + import CallOverlay from '$lib/components/chat/MessageInput/CallOverlay.svelte'; const i18n = getContext('i18n'); @@ -190,6 +192,10 @@ class=" text-gray-700 dark:text-gray-100 bg-white dark:bg-gray-900 h-screen max-h-[100dvh] overflow-auto flex flex-row" > {#if loaded} + {#if $showCallOverlay} + + {/if} + {#if !['user', 'admin'].includes($user.role)} {:else if localDBChats.length > 0}