diff --git a/web/src/lib/components/download-movie-dialog.svelte b/web/src/lib/components/download-movie-dialog.svelte index 629727f..c15324a 100644 --- a/web/src/lib/components/download-movie-dialog.svelte +++ b/web/src/lib/components/download-movie-dialog.svelte @@ -15,7 +15,7 @@ let { movie } = $props(); let dialogueState = $state(false); - let torrentsPromise: any = $state(); + let torrentsPromise: any = $state(null); let tabState: string = $state('basic'); let isLoading: boolean = $state(false); let advancedMode: boolean = $derived(tabState === 'advanced'); @@ -73,7 +73,7 @@ } - (dialogueState ? search() : null)}> + Download Movie @@ -168,9 +168,17 @@ {:else} - -
No torrents found.
-
+ {#if data === null} + +
+ Start searching by clicking the search button! +
+
+ {:else} + +
No torrents found.
+
+ {/if} {/each} diff --git a/web/src/lib/components/download-season-dialog.svelte b/web/src/lib/components/download-season-dialog.svelte index d0edeb5..97b337f 100644 --- a/web/src/lib/components/download-season-dialog.svelte +++ b/web/src/lib/components/download-season-dialog.svelte @@ -73,7 +73,7 @@ } - (dialogueState ? search() : null)}> + Download Seasons @@ -202,9 +202,17 @@ {:else} - -
No torrents found.
-
+ {#if data === null} + +
+ Start searching by clicking the search button! +
+
+ {:else} + +
No torrents found.
+
+ {/if} {/each}