Browse Source

feat(repo-details): show unqiue commit not specified

instead of not displaying the heading

to encourage repo maintainers to include it as it
improves ngit usability
master
DanConwayDev 2 years ago
parent
commit
ca4fca9b8b
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 5
      src/lib/components/repo/RepoDetails.svelte

5
src/lib/components/repo/RepoDetails.svelte

@ -156,7 +156,10 @@ @@ -156,7 +156,10 @@
<div class="skeleton my-3 h-5 w-20"></div>
<div class="skeleton my-2 h-4"></div>
<div class="skeleton my-2 mb-3 h-4 w-2/3"></div>
{:else if unique_commit && unique_commit.length > 0}
{:else if !unique_commit || unique_commit.length == 0}
<h4>earliest unique commit</h4>
<p class="my-2 break-words text-xs">not specified</p>
{:else}
<h4>earliest unique commit</h4>
<p class="my-2 break-words text-xs">{unique_commit}</p>
{/if}

Loading…
Cancel
Save