Fix cannot open groupNodes menu from canvas (#1925)

* Fix cannot open groupNode menu from canvas

* Fix cannot open groupNode menu from canvas

Fixes root cause of issue

* Update locales [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
filtered
2024-12-18 04:47:09 +11:00
committed by GitHub
parent 90e94df1e4
commit 7f60811ebf
8 changed files with 90 additions and 4 deletions

View File

@@ -1425,7 +1425,7 @@ function addConvertToGroupOptions() {
options.splice(index + 1, null, {
content: `Manage Group Nodes`,
disabled,
callback: manageGroupNodes
callback: () => manageGroupNodes()
})
}

View File

@@ -373,7 +373,7 @@ export class ManageGroupDialog extends ComfyDialog<HTMLDialogElement> {
groupNodes.map((g) =>
$el('option', {
textContent: g,
selected: `${PREFIX}${SEPARATOR}` + g === type,
selected: `${PREFIX}${SEPARATOR}${g}` === type,
value: g
})
)
@@ -512,7 +512,8 @@ export class ManageGroupDialog extends ComfyDialog<HTMLDialogElement> {
this.element.replaceChildren(outer)
this.changeGroup(
type
? groupNodes.find((g) => `${PREFIX}${SEPARATOR}` + g === type)
? groupNodes.find((g) => `${PREFIX}${SEPARATOR}${g}` === type) ??
groupNodes[0]
: groupNodes[0]
)
this.element.showModal()

View File

@@ -909,8 +909,8 @@
"DevTools": "DevTools",
"deprecated": "deprecated",
"latent": "latent",
"audio": "audio",
"video": "video",
"audio": "audio",
"ltxv": "ltxv",
"sd3": "sd3",
"sigmas": "sigmas",

View File

@@ -1157,6 +1157,23 @@
}
}
},
"EmptyHunyuanLatentVideo": {
"display_name": "EmptyHunyuanLatentVideo",
"inputs": {
"width": {
"name": "width"
},
"height": {
"name": "height"
},
"length": {
"name": "length"
},
"batch_size": {
"name": "batch_size"
}
}
},
"EmptyImage": {
"display_name": "EmptyImage",
"inputs": {

View File

@@ -1157,6 +1157,23 @@
}
}
},
"EmptyHunyuanLatentVideo": {
"display_name": "EmptyHunyuanLatentVideo",
"inputs": {
"batch_size": {
"name": "バッチサイズ"
},
"height": {
"name": "高さ"
},
"length": {
"name": "長さ"
},
"width": {
"name": "幅"
}
}
},
"EmptyImage": {
"display_name": "空の画像",
"inputs": {

View File

@@ -1157,6 +1157,23 @@
}
}
},
"EmptyHunyuanLatentVideo": {
"display_name": "EmptyHunyuanLatentVideo",
"inputs": {
"batch_size": {
"name": "배치 크기"
},
"height": {
"name": "높이"
},
"length": {
"name": "길이"
},
"width": {
"name": "너비"
}
}
},
"EmptyImage": {
"display_name": "빈 이미지",
"inputs": {

View File

@@ -1157,6 +1157,23 @@
}
}
},
"EmptyHunyuanLatentVideo": {
"display_name": устойHunyuanLatentVideo",
"inputs": {
"batch_size": {
"name": "размер_пакета"
},
"height": {
"name": "высота"
},
"length": {
"name": "длина"
},
"width": {
"name": "ширина"
}
}
},
"EmptyImage": {
"display_name": "Пустое изображение",
"inputs": {

View File

@@ -1157,6 +1157,23 @@
}
}
},
"EmptyHunyuanLatentVideo": {
"display_name": "空的混元潜在视频",
"inputs": {
"batch_size": {
"name": "批量大小"
},
"height": {
"name": "高度"
},
"length": {
"name": "长度"
},
"width": {
"name": "宽度"
}
}
},
"EmptyImage": {
"display_name": "空图像",
"inputs": {