From 1e509d97f630db606b42b38cf8ffae2bb88b8311 Mon Sep 17 00:00:00 2001 From: Ben <45583362+ben-basten@users.noreply.github.com> Date: Tue, 3 Sep 2024 23:53:48 -0400 Subject: [PATCH] feat(web): show folder navigation in root directory (#12299) --- .../folders/[[photos=photos]]/[[assetId=id]]/+page.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/routes/(user)/folders/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/folders/[[photos=photos]]/[[assetId=id]]/+page.svelte index 1ffa64d3a3..bbdf86da7f 100644 --- a/web/src/routes/(user)/folders/[[photos=photos]]/[[assetId=id]]/+page.svelte +++ b/web/src/routes/(user)/folders/[[photos=photos]]/[[assetId=id]]/+page.svelte @@ -25,6 +25,7 @@ $: pathSegments = data.path ? data.path.split('/') : []; $: tree = buildTree($foldersStore?.uniquePaths || []); $: currentPath = $page.url.searchParams.get(QueryParameter.PATH) || ''; + $: currentTreeItems = currentPath ? data.currentFolders : Object.keys(tree); onMount(async () => { await foldersStore.fetchUniquePaths(); @@ -63,7 +64,7 @@
- + {#if data.pathAssets && data.pathAssets.length > 0}