mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-18 11:40:39 +09:00
Remove "None" text from empty Blocking and Sub-issues property rows
When there are no blocking issues or sub-issues, show nothing (or just the "+ Add sub-issue" button) instead of displaying "None" text. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
db1279dc12
commit
bac5afa647
1 changed files with 4 additions and 8 deletions
|
|
@ -846,15 +846,13 @@ export function IssueProperties({
|
||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : null}
|
||||||
<span className="text-sm text-muted-foreground">None</span>
|
|
||||||
)}
|
|
||||||
</PropertyRow>
|
</PropertyRow>
|
||||||
|
|
||||||
<PropertyRow label="Sub-issues">
|
<PropertyRow label="Sub-issues">
|
||||||
<div className="flex flex-wrap items-center gap-1.5">
|
<div className="flex flex-wrap items-center gap-1.5">
|
||||||
{childIssues.length > 0 ? (
|
{childIssues.length > 0
|
||||||
childIssues.map((child) => (
|
? childIssues.map((child) => (
|
||||||
<Link
|
<Link
|
||||||
key={child.id}
|
key={child.id}
|
||||||
to={`/issues/${child.identifier ?? child.id}`}
|
to={`/issues/${child.identifier ?? child.id}`}
|
||||||
|
|
@ -863,9 +861,7 @@ export function IssueProperties({
|
||||||
{child.identifier ?? child.title}
|
{child.identifier ?? child.title}
|
||||||
</Link>
|
</Link>
|
||||||
))
|
))
|
||||||
) : (
|
: null}
|
||||||
<span className="text-sm text-muted-foreground">None</span>
|
|
||||||
)}
|
|
||||||
{onAddSubIssue ? (
|
{onAddSubIssue ? (
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue