Add ZXDB origins and label types

Show entry origins data and display label type names
in label detail view.

Signed-off-by: codex@lucy.xalior.com
This commit is contained in:
2026-01-10 18:12:30 +00:00
parent e2f6aac856
commit fb206734db
3 changed files with 125 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ type Label = {
id: number;
name: string;
labeltypeId: string | null;
labeltypeName: string | null;
permissions: {
website: { id: number; name: string; link?: string | null };
type: { id: string; name: string | null };
@@ -49,7 +50,11 @@ export default function LabelDetailClient({ id, initial, initialTab, initialQ }:
<div className="d-flex align-items-center justify-content-between flex-wrap gap-2">
<h1 className="mb-0">{initial.label.name}</h1>
<div>
<span className="badge text-bg-light">{initial.label.labeltypeId ?? "?"}</span>
<span className="badge text-bg-light">
{initial.label.labeltypeName
? `${initial.label.labeltypeName} (${initial.label.labeltypeId ?? "?"})`
: (initial.label.labeltypeId ?? "?")}
</span>
</div>
</div>