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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user