From b226b6db226c7e579adb5d40d134af311318bcce Mon Sep 17 00:00:00 2001 From: Comfy Org PR Bot Date: Sun, 8 Feb 2026 13:03:27 +0900 Subject: [PATCH] [backport core/1.38] fix(vue-nodes): hide slot labels for reroute nodes with empty names (#8727) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport of #8574 to `core/1.38` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8727-backport-core-1-38-fix-vue-nodes-hide-slot-labels-for-reroute-nodes-with-empty-names-3006d73d365081cc85b0fbb503fc130b) by [Unito](https://www.unito.io) Co-authored-by: Christian Byrne --- .../extensions/vueNodes/components/InputSlot.vue | 15 +++++++++++---- .../extensions/vueNodes/components/OutputSlot.vue | 14 +++++++++++--- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/renderer/extensions/vueNodes/components/InputSlot.vue b/src/renderer/extensions/vueNodes/components/InputSlot.vue index 61c4dd35a8..ba8ae57b1d 100644 --- a/src/renderer/extensions/vueNodes/components/InputSlot.vue +++ b/src/renderer/extensions/vueNodes/components/InputSlot.vue @@ -7,7 +7,7 @@ cn( 'lg-slot lg-slot--input flex items-center group rounded-r-lg m-0', 'cursor-crosshair', - props.dotOnly ? 'lg-slot--dot-only' : 'pr-6', + dotOnly ? 'lg-slot--dot-only' : 'pr-6', { 'lg-slot--connected': props.connected, 'lg-slot--compatible': props.compatible, @@ -36,7 +36,7 @@
- - {{ slotData.localized_name || slotData.name || `Output ${index}` }} + + {{ slotData.localized_name || (slotData.name ?? `Output ${index}`) }}
@@ -44,6 +47,11 @@ interface OutputSlotProps { const props = defineProps() +const hasNoLabel = computed( + () => !props.slotData.localized_name && props.slotData.name === '' +) +const dotOnly = computed(() => props.dotOnly || hasNoLabel.value) + // Error boundary implementation const renderError = ref(null) @@ -79,7 +87,7 @@ const slotWrapperClass = computed(() => cn( 'lg-slot lg-slot--output flex items-center justify-end group rounded-l-lg h-6', 'cursor-crosshair', - props.dotOnly ? 'lg-slot--dot-only justify-center' : 'pl-6', + dotOnly.value ? 'lg-slot--dot-only justify-center' : 'pl-6', { 'lg-slot--connected': props.connected, 'lg-slot--compatible': props.compatible,