refactor(webui): use constants

develop
Tomáš Mládek 2024-01-22 09:24:39 +01:00
parent b423fdcb22
commit 631bbc1772
1 changed files with 8 additions and 3 deletions

View File

@ -15,7 +15,12 @@
import { useEntity } from "../../lib/entity";
import { i18n } from "../../i18n";
import api from "../../lib/api";
import { ATTR_IN, ATTR_LABEL, HIER_ROOT_ADDR } from "@upnd/upend/constants";
import {
ATTR_IN,
ATTR_KEY,
ATTR_LABEL,
HIER_ROOT_ADDR,
} from "@upnd/upend/constants";
import { selected } from "../EntitySelect.svelte";
import { Any } from "@upnd/upend/query";
@ -189,8 +194,8 @@
<UpObjectLabel label={displayLabel} backpath={resolvedBackpath} />
{/if}
</div>
{#if $entity?.get("KEY")}
<div class="key">{$entity.get("KEY")}</div>
{#if $entity?.get(ATTR_KEY)}
<div class="key">{$entity.get(ATTR_KEY)}</div>
{/if}
<div class="secondary">
<div class="type">