mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-02 02:00:31 +08:00
+4
-4
@@ -14,7 +14,7 @@ export interface IIssue {
|
||||
state: State;
|
||||
comment: Comment;
|
||||
discussion: Thread[];
|
||||
labels: Label[];
|
||||
tags: Tag[];
|
||||
timestamp: number;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ export interface Comment<R = null> {
|
||||
|
||||
export type Thread = Comment<Comment[]>;
|
||||
|
||||
export type Label = string;
|
||||
export type Tag = string;
|
||||
|
||||
export function groupIssues(issues: Issue[]): {
|
||||
open: Issue[];
|
||||
@@ -59,7 +59,7 @@ export class Issue {
|
||||
state: State;
|
||||
comment: Comment;
|
||||
discussion: Thread[];
|
||||
labels: Label[];
|
||||
tags: Tag[];
|
||||
timestamp: number;
|
||||
|
||||
constructor(issue: IIssue) {
|
||||
@@ -69,7 +69,7 @@ export class Issue {
|
||||
this.state = issue.state;
|
||||
this.comment = issue.comment;
|
||||
this.discussion = issue.discussion;
|
||||
this.labels = issue.labels;
|
||||
this.tags = issue.tags;
|
||||
this.timestamp = issue.timestamp;
|
||||
}
|
||||
|
||||
|
||||
@@ -150,14 +150,14 @@
|
||||
</div>
|
||||
<div class="metadata layout-desktop">
|
||||
<div class="metadata-section">
|
||||
<div class="metadata-section-header">Labels</div>
|
||||
<div class="metadata-section-header">Tags</div>
|
||||
<div class="metadata-section-body">
|
||||
{#if issue.labels?.length}
|
||||
{#each issue.labels as label}
|
||||
<span class="label">{label}</span>
|
||||
{#if issue.tags?.length}
|
||||
{#each issue.tags as tag}
|
||||
<span class="label">{tag}</span>
|
||||
{/each}
|
||||
{:else}
|
||||
<div class="metadata-section-empty">No labels.</div>
|
||||
<div class="metadata-section-empty">No tags.</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user