From a8d2be5ebac847364bf2e067ea7cca21e46107a0 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Mon, 13 Jan 2025 13:03:27 +0100 Subject: [PATCH] Address review Signed-off-by: Florian Hotze --- .../src/components/pagedesigner/sitemap/treeview-item.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/components/pagedesigner/sitemap/treeview-item.vue b/bundles/org.openhab.ui/web/src/components/pagedesigner/sitemap/treeview-item.vue index 05612fe2bc..72c24f1af6 100644 --- a/bundles/org.openhab.ui/web/src/components/pagedesigner/sitemap/treeview-item.vue +++ b/bundles/org.openhab.ui/web/src/components/pagedesigner/sitemap/treeview-item.vue @@ -4,10 +4,11 @@ :textColor="iconColor" :color="'blue'" :selected="selected && selected === widget" :opened="!widget.closed" + :toggle="canHaveChildren" @treeview:open="setWidgetClosed(false)" @treeview:close="setWidgetClosed(true)" @click="select"> - 0 || this.localMoveState.moving) + return (this.LINKABLE_WIDGET_TYPES.includes(this.widget.component) && (this.children.length > 0 || this.localMoveState.moving)) === true } } }