Mostly get drag and drop working

This commit is contained in:
ZXY101
2023-09-13 16:57:52 +02:00
parent 3c8ab90b06
commit 3a37b62a38
9 changed files with 284 additions and 146 deletions

View File

@@ -7,7 +7,16 @@
import { ExclamationCircleOutline } from 'flowbite-svelte-icons';
import { db } from '$lib/catalog/db';
const manga = $currentManga;
const manga = $currentManga?.sort((a, b) => {
if (a.volumeName < b.volumeName) {
return -1;
}
if (a.volumeName > b.volumeName) {
return 1;
}
return 0;
});
let popupModal = false;
onMount(() => {

View File

@@ -6,7 +6,7 @@
let promise: Promise<void>;
async function onUpload(files: FileList) {
promise = processFiles(files);
promise = processFiles([...files]);
}
</script>