Rename label -> tag

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-12-29 13:45:52 +01:00
parent 5f0d187ecd
commit cd9b2adcdd
2 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -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;
}
+5 -5
View File
@@ -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>