Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Fix showing onboarding instructions when there's at least one repo in total
Sebastian Martinez committed 1 year ago
commit d97c12c69255cc60e565e53af41b7dfa4c7a0b25
parent ea2982f
1 file changed +6 -2
modified src/views/home/Repos.svelte
@@ -151,7 +151,7 @@
        </div>
      {/if}
    </div>
-
    {#if repos.length > 0}
+
    {#if repoCount.total > 0}
      {#if searchResults.length > 0}
        <div class="repo-grid">
          {#each searchResults as result}
@@ -179,7 +179,11 @@
            style:justify-content="center">
            <div class="txt-missing txt-small global-flex" style:gap="0.25rem">
              <Icon name="none" />
-
              No matching repositories.
+
              {#if repos.length > 0}
+
                No matching repositories.
+
              {:else}
+
                No repositories.
+
              {/if}
            </div>
          </div>
        </Border>