Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Rename label -> tag
Rūdolfs Ošiņš committed 3 years ago
commit cd9b2adcdd4ddd810308357f46f06966545efc8c
parent 5f0d187ecd7c11339da87e24d8ae4d91ac92094f
2 files changed +9 -9
modified src/lib/issue.ts
@@ -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;
  }

modified src/views/projects/Issue.svelte
@@ -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>