Remove some event dispatchers

This commit is contained in:
2025-10-14 00:03:48 +02:00
parent 75d9ed3023
commit b409ff009d
23 changed files with 165 additions and 316 deletions

View File

@@ -1,5 +1,4 @@
<script lang="ts">
import { createEventDispatcher } from "svelte";
import { copy_text } from "util/Util";
import FileStats from "./FileStats.svelte";
import type { FSNavigator } from "./FSNavigator";
@@ -8,8 +7,6 @@ import { fs_share_url, path_is_shared } from "lib/FilesystemAPI.svelte";
import ShareDialog from "./ShareDialog.svelte";
import { bookmark_add, bookmark_del, bookmarks_store, is_bookmark } from "lib/Bookmarks";
let dispatch = createEventDispatcher()
let {
nav = $bindable(),
details_visible = $bindable(false),
@@ -53,7 +50,7 @@ export const copy_link = () => {
</button>
</div>
<button onclick={() => dispatch("download")}>
<button onclick={() => $nav.base.download()}>
<i class="icon">save</i>
<span>Download</span>
</button>