Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Expand browser tree when navigation through relative file links
Sebastian Martinez committed 2 years ago
commit d51f08d6af1865218d63517b556e9309e1fe5b03
parent ecabe9b7a8fd279858abb15fb177c20389a54d73
1 file changed +2 -2
modified src/views/projects/Tree/Folder.svelte
@@ -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;
      })