mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 06:44:32 +00:00
Fix labels on output slots in vue mode (#8846)
Vue output slots were not respecting the `slot.label`. As a result, a renamed subgraph output slot would still display the original name when in vue mode. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8846-Fix-labels-on-output-slots-in-vue-mode-3066d73d3650811c986cffee03f56ac2) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -7,7 +7,11 @@
|
||||
v-if="!props.dotOnly && !hasNoLabel"
|
||||
class="truncate text-node-component-slot-text"
|
||||
>
|
||||
{{ slotData.localized_name || (slotData.name ?? `Output ${index}`) }}
|
||||
{{
|
||||
slotData.label ||
|
||||
slotData.localized_name ||
|
||||
(slotData.name ?? `Output ${index}`)
|
||||
}}
|
||||
</span>
|
||||
</div>
|
||||
<!-- Connection Dot -->
|
||||
|
||||
Reference in New Issue
Block a user