[webui] display proper type names
parent
5bb58ca414
commit
51029383a4
|
@ -53,7 +53,7 @@
|
|||
<Icon name={type.icon} />
|
||||
</div>
|
||||
{/if}
|
||||
{type.name || "???"}
|
||||
{type.label || type.name || "???"}
|
||||
</UpLink>
|
||||
{:else}
|
||||
{title || "???"}
|
||||
|
|
|
@ -44,6 +44,9 @@
|
|||
case "TYPE":
|
||||
allTypes[entry.entity].name = String(entry.value.c);
|
||||
break;
|
||||
case "LBL":
|
||||
allTypes[entry.entity].label = String(entry.value.c);
|
||||
break;
|
||||
case "TYPE_HAS":
|
||||
allTypes[entry.entity].attributes.push(String(entry.value.c));
|
||||
break;
|
||||
|
|
|
@ -3,6 +3,7 @@ import Table from "../components/widgets/Table.svelte";
|
|||
export class UpType {
|
||||
address: string;
|
||||
name: string | null = null;
|
||||
label: string | null = null;
|
||||
attributes: string[] = [];
|
||||
|
||||
constructor(address?: string) {
|
||||
|
|
Loading…
Reference in New Issue