diff --git a/dashboard/frontend/src/routes/Files.svelte b/dashboard/frontend/src/routes/Files.svelte index bb575ed..f4cead6 100644 --- a/dashboard/frontend/src/routes/Files.svelte +++ b/dashboard/frontend/src/routes/Files.svelte @@ -6,7 +6,6 @@ let currentPath = $state(""); let loading = $state(true); let uploading = $state(false); - let downloading = $state(false); let error = $state(""); let fileInput; @@ -33,15 +32,12 @@ async function handleDownload(name) { const path = currentPath ? `${currentPath}/${name}` : name; - downloading = true; error = ""; try { await download(path, name); } catch (e) { error = `Failed to download "${name}": ${e.message}`; console.error("Download failed:", e); - } finally { - downloading = false; } } @@ -165,8 +161,8 @@ {e.is_dir ? "—" : formatSize(e.size)}