mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-21 23:34:31 +00:00
Add Disconnect Links option to input slot menu (#901)
This commit is contained in:
@@ -7102,8 +7102,9 @@ export class LGraphCanvas implements ConnectionColorContext {
|
||||
if (node.getSlotMenuOptions) {
|
||||
menu_info = node.getSlotMenuOptions(slot)
|
||||
} else {
|
||||
if (slot?.output?.links?.length)
|
||||
if (slot.output?.links?.length || slot.input?.link != null) {
|
||||
menu_info.push({ content: "Disconnect Links", slot })
|
||||
}
|
||||
|
||||
const _slot = slot.input || slot.output
|
||||
if (!_slot) throw new TypeError("Both in put and output slots were null when processing context menu.")
|
||||
|
||||
Reference in New Issue
Block a user