From b29a1b2a970f8a8fb4cab64c88d6ebe22050442e Mon Sep 17 00:00:00 2001 From: Fornax Date: Thu, 25 May 2023 21:36:59 +0200 Subject: [PATCH] Loading indicator on edit operations --- svelte/src/filesystem/EditWindow.svelte | 9 +++++++++ svelte/src/filesystem/Filesystem.svelte | 11 ++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/svelte/src/filesystem/EditWindow.svelte b/svelte/src/filesystem/EditWindow.svelte index d960bf2..b5cdd67 100644 --- a/svelte/src/filesystem/EditWindow.svelte +++ b/svelte/src/filesystem/EditWindow.svelte @@ -1,6 +1,9 @@ @@ -111,7 +115,7 @@ const search = async () => { loading = e.detail} + on:loading={loading_evt} on:navigation_complete={() => { // Reset the view to the file view if we were in search view view = "file" @@ -155,7 +159,7 @@ const search = async () => { fs_navigator={fs_navigator} state={state} edit_window={edit_window} - on:loading={e => {loading = e.detail}} + on:loading={loading_evt} on:open_sibling={e => fs_navigator.open_sibling(e.detail)} on:download={download} /> @@ -163,7 +167,7 @@ const search = async () => { {loading = e.detail}} + on:loading={loading_evt} /> {/if} @@ -186,6 +190,7 @@ const search = async () => { bind:visible={edit_visible} bucket={state.root.id} fs_navigator={fs_navigator} + on:loading={loading_evt} />