Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Make sure file loading indicator is propagated
Alexis Sellier committed 4 years ago
commit 9621fa45679acb5a2e12270cdde425a94071a3fe
parent f00d0590a1ceb884cdaa3431be7f8f193c9ca7b4
2 files changed +3 -1
modified src/base/projects/Tree.svelte
@@ -22,6 +22,7 @@
  {#if entry.info.objectType === ObjectType.Tree}
    <Folder
      {fetchTree}
+
      {loading}
      name={entry.info.name}
      prefix={`${entry.path}/`}
      currentPath={path}
modified src/base/projects/Tree/Folder.svelte
@@ -11,6 +11,7 @@
  export let name: string;
  export let prefix: string;
  export let currentPath: string;
+
  export let loading: string | null = null;

  let expanded = currentPath.indexOf(prefix) === 0;
  let tree: Promise<Tree> | null = expanded ? fetchTree(prefix) : null;
@@ -81,7 +82,7 @@
          {:else}
            <File
              active={entry.path === currentPath}
-
              loading={false}
+
              loading={entry.path === loading}
              name={entry.info.name}
              on:click={() => {
                onSelectFile({ detail: entry.path });