This commit is contained in:
Timothy J. Baek 2024-08-26 15:37:11 +02:00
parent b148865ee8
commit a9673c793a
2 changed files with 15 additions and 2 deletions

View File

@ -78,7 +78,17 @@
<div <div
class="absolute w-full h-screen max-h-[100dvh] bg-white text-gray-700 dark:bg-black dark:text-gray-300 flex justify-center" class="absolute w-full h-screen max-h-[100dvh] bg-white text-gray-700 dark:bg-black dark:text-gray-300 flex justify-center"
> >
<CallOverlay bind:files {submitPrompt} {stopResponse} {modelId} {chatId} {eventTarget} /> <CallOverlay
bind:files
{submitPrompt}
{stopResponse}
{modelId}
{chatId}
{eventTarget}
on:close={() => {
show = false;
}}
/>
</div> </div>
</div> </div>
{:else} {:else}

View File

@ -1,6 +1,8 @@
<script lang="ts"> <script lang="ts">
import { config, models, settings, showCallOverlay } from '$lib/stores'; import { config, models, settings, showCallOverlay } from '$lib/stores';
import { onMount, tick, getContext, onDestroy } from 'svelte'; import { onMount, tick, getContext, onDestroy, createEventDispatcher } from 'svelte';
const dispatch = createEventDispatcher();
import { import {
blobToFile, blobToFile,
@ -923,6 +925,7 @@
stopAudioStream(); stopAudioStream();
stopVideoStream(); stopVideoStream();
showCallOverlay.set(false); showCallOverlay.set(false);
dispatch('close');
}} }}
type="button" type="button"
> >