feat: call ui scaffold

This commit is contained in:
Timothy J. Baek
2024-06-06 22:30:19 -07:00
parent 340b716a90
commit 5196b65c2e
4 changed files with 93 additions and 3 deletions
+7 -1
View File
@@ -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}
<CallOverlay />
{/if}
{#if !['user', 'admin'].includes($user.role)}
<AccountPending />
{:else if localDBChats.length > 0}