mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Expand browser tree when navigation through relative file links
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
export let loadingPath: string | null = null;
|
||||
export let revision: string;
|
||||
|
||||
let expanded = currentPath.indexOf(prefix) === 0;
|
||||
let tree: Promise<Tree | undefined> = expanded
|
||||
$: expanded = currentPath.indexOf(prefix) === 0;
|
||||
$: tree = expanded
|
||||
? fetchTree(prefix).then(tree => {
|
||||
return tree;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user