refactor(webui): use constants
parent
b423fdcb22
commit
631bbc1772
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue