File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
tools/server/webui/src/lib/components/app/chat/ChatAttachments Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import { ChatAttachmentImagePreview , ChatAttachmentFilePreview } from ' $lib/components/app' ;
33 import ChatAttachmentPreviewDialog from ' ./ChatAttachmentPreviewDialog.svelte' ;
4- import { FileTypeCategory , PdfMimeType , getFileTypeCategory } from ' $lib/constants/supported-file-types' ;
4+ import {
5+ FileTypeCategory ,
6+ PdfMimeType ,
7+ getFileTypeCategory
8+ } from ' $lib/constants/supported-file-types' ;
59
610 interface Props {
711 class? : string ;
4448 } | null >(null );
4549
4650 function openPreview(item : (typeof displayItems )[0 ], event ? : Event ) {
47- // Prevent form submission when clicking on attachments
4851 if (event ) {
4952 event .preventDefault ();
5053 event .stopPropagation ();
5154 }
52-
55+
5356 previewItem = {
5457 uploadedFile: item .uploadedFile ,
5558 attachment: item .attachment ,
You can’t perform that action at this time.
0 commit comments