diff --git a/src/pages/Misc.svelte b/src/pages/Misc.svelte index 968ae0c..c3af56a 100644 --- a/src/pages/Misc.svelte +++ b/src/pages/Misc.svelte @@ -10,6 +10,11 @@ import { BlossomClient, type BlobDescriptor } from "blossom-client"; import { signEventTemplate } from "../services/ndk"; import { servers } from "../services/servers"; + import { onMount } from "svelte"; + + onMount(() => { + refreshBlobs(); + }); let selectedDrive = ""; let selectedType = ""; @@ -21,7 +26,9 @@ $: sortedBlobs = miscBlobs .filter((b) => { - if (selectedDrive) { + if (selectedDrive === "--non--") { + if (getBlobDrives(b).length > 0) return false; + } else if (selectedDrive) { const isInDrive = getBlobDrives(b).some((d) => d.tags.find((t) => t[0] === "d")?.[1] === selectedDrive); if (!isInDrive) return false; } @@ -51,10 +58,13 @@
+ +{#if server} + +