[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} /> <Icon name={type.icon} />
</div> </div>
{/if} {/if}
{type.name || "???"} {type.label || type.name || "???"}
</UpLink> </UpLink>
{:else} {:else}
{title || "???"} {title || "???"}

View File

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

View File

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