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