mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Fix issue fetching when not supported
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user