From 2abb7f16cda526ea6cc6d03df610f62ff5173bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Fri, 6 Dec 2024 11:09:35 +0100 Subject: [PATCH] Add label and assignee inputs to the create issue view --- src/components/AssigneeInput.svelte | 5 +- src/components/LabelInput.svelte | 5 +- src/views/repo/CreateIssue.svelte | 71 +++++++++++++++++++++++++---- 3 files changed, 69 insertions(+), 12 deletions(-) diff --git a/src/components/AssigneeInput.svelte b/src/components/AssigneeInput.svelte index da9dbe616..3b35b70d4 100644 --- a/src/components/AssigneeInput.svelte +++ b/src/components/AssigneeInput.svelte @@ -152,9 +152,10 @@ removeAssignee(assignee)} /> {/if} - {:else} -
Not assigned to anyone.
{/each} + {#if updatedAssignees.length === 0 && !showInput} +
Not assigned to anyone.
+ {/if} {:else} {#each updatedAssignees as assignee} diff --git a/src/components/LabelInput.svelte b/src/components/LabelInput.svelte index abcee1959..1570e1384 100644 --- a/src/components/LabelInput.svelte +++ b/src/components/LabelInput.svelte @@ -139,9 +139,10 @@ removeLabel(label)} /> {/if} - {:else} -
No labels.
{/each} + {#if updatedLabels.length === 0 && !showInput} +
No labels.
+ {/if} {:else} {#each updatedLabels as label}