[webui] display proper type names

feat/vaults
Tomáš Mládek 2022-01-28 23:27:09 +01:00
parent 5bb58ca414
commit 51029383a4
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
3 changed files with 5 additions and 1 deletions

View File

@ -53,7 +53,7 @@
<Icon name={type.icon} />
</div>
{/if}
{type.name || "???"}
{type.label || type.name || "???"}
</UpLink>
{:else}
{title || "???"}

View File

@ -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;

View File

@ -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) {