Add files modal and X button

This commit is contained in:
2026-01-13 23:06:14 +05:00
parent 327aff6208
commit df9fe970ab
2 changed files with 26 additions and 4 deletions

View File

@ -17,6 +17,8 @@ import FileUpload from '@/components/ui/file-upload/FileUpload.vue';
import FileUploadGrid from '@/components/ui/file-upload/FileUploadGrid.vue';
import Button from '@/components/ui/button/Button.vue';
const files = ref<File[]>([]);
const currentPlaylistStore = useCurrentPlaylistStore();
const progressEntries = ref<Map<string, StreamProgress200Item>>(new Map());
let listener: EventSourceListener<StreamProgress200Item> | null = null;
@ -59,7 +61,6 @@ async function listenImports() {
}
function onYoutubeClick(e: MouseEvent) {
console.log("hello")
e.stopPropagation();
}
@ -90,7 +91,7 @@ onUnmounted(() => {
</Outline>
</template>
<div class="w-full flex flex-col p-8">
<FileUpload class="rounded-lg border border-dashed border-muted" @onChange="">
<FileUpload v-model="files" class="rounded-lg border border-dashed border-muted" @onChange="">
<template #default>
<FileUploadGrid />
</template>