From 462aa6e6658bf67dbe25e0f379d692f308c83552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 27 Aug 2023 11:51:50 +0200 Subject: [PATCH] fix: don't show type editor for nontypes --- webui/src/components/InspectTypeEditor.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/src/components/InspectTypeEditor.svelte b/webui/src/components/InspectTypeEditor.svelte index c514425..8138cad 100644 --- a/webui/src/components/InspectTypeEditor.svelte +++ b/webui/src/components/InspectTypeEditor.svelte @@ -35,7 +35,7 @@ $i18n.t('Really remove "{{attributeName}}" from "{{typeName}}"?', { attributeName: (await api.addressToComponents(entry.entity)).c, typeName: $entity.identify().join("/"), - }) + }), ); if (really) { @@ -45,7 +45,7 @@ } -{#if typeEntries.length || editable} +{#if typeEntries.length || (editable && $entity?.attr["~IN"]?.length)}

{$i18n.t("Type Attributes")}