fix: don't show type editor for nontypes
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
b3d6866c7c
commit
462aa6e665
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@
|
||||||
$i18n.t('Really remove "{{attributeName}}" from "{{typeName}}"?', {
|
$i18n.t('Really remove "{{attributeName}}" from "{{typeName}}"?', {
|
||||||
attributeName: (await api.addressToComponents(entry.entity)).c,
|
attributeName: (await api.addressToComponents(entry.entity)).c,
|
||||||
typeName: $entity.identify().join("/"),
|
typeName: $entity.identify().join("/"),
|
||||||
})
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
if (really) {
|
if (really) {
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if typeEntries.length || editable}
|
{#if typeEntries.length || (editable && $entity?.attr["~IN"]?.length)}
|
||||||
<section class="labelborder">
|
<section class="labelborder">
|
||||||
<header><h3>{$i18n.t("Type Attributes")}</h3></header>
|
<header><h3>{$i18n.t("Type Attributes")}</h3></header>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
Loading…
Reference in a new issue