diff --git a/src/components/DashboardTable.svelte b/src/components/DashboardTable.svelte index 337d9cf..1c3677e 100644 --- a/src/components/DashboardTable.svelte +++ b/src/components/DashboardTable.svelte @@ -100,6 +100,7 @@ filterDateDesc = true; filterActive = false; filterNotActive = false; + currentPage = 1; } function toggleFilter(filter: string) { diff --git a/src/components/GenerateGameTable.svelte b/src/components/GenerateGameTable.svelte index 64c7e47..f6c7cd4 100644 --- a/src/components/GenerateGameTable.svelte +++ b/src/components/GenerateGameTable.svelte @@ -21,6 +21,10 @@ console.log('Fields updated:', event.paths); } } + + if ($form.csv) { + isDragging = false; + } }, onUpdate({ form }) { if (form.valid) { @@ -51,46 +55,84 @@ } } }); + + let isDragging = $state(false); + + function handleDragEnter(event: DragEvent) { + console.log('we are dragging'); + isDragging = true; + event.preventDefault(); + } + + function handleDragLeave(event: DragEvent) { + console.log('we are not dragging'); + isDragging = false; + event.preventDefault(); + } + + function handleDragOver(event: DragEvent) { + event.preventDefault(); + } {#if $message}

{$message}

{/if}
- - - - - - -