Fix issue fetching when not supported

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2022-06-09 09:27:11 +02:00
committed by Alexis Sellier
parent 17fa47d41b
commit b2c2aeea3c
2 changed files with 12 additions and 5 deletions
+10
View File
@@ -81,6 +81,12 @@
.clickable:hover {
background-color: var(--color-foreground-background-lighter);
}
.not-allowed {
cursor: not-allowed;
}
.not-allowed.widget {
color: var(--color-foreground-faded);
}
.clone {
color: var(--color-yellow);
background-color: var(--color-yellow-background);
@@ -196,6 +202,10 @@
<div class="stat issue-count clickable widget" class:active={content == ProjectContent.Issues} on:click={toggleIssues}>
<strong>{groupIssues(issues).open.length}</strong> issue(s)
</div>
{:catch e}
<div class="stat issue-count not-allowed widget" title="Not supported">
0 issue(s)
</div>
{/await}
<div class="stat contributor-count widget">
<strong>{tree.stats.contributors}</strong> contributor(s)