mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 10:12:11 +00:00
[Test] Update expectation context menu deprecation
This commit is contained in:
@@ -1127,13 +1127,11 @@ export class GroupNodeHandler {
|
|||||||
getExtraMenuOptions?.apply(this, arguments)
|
getExtraMenuOptions?.apply(this, arguments)
|
||||||
|
|
||||||
// @ts-expect-error fixme ts strict error
|
// @ts-expect-error fixme ts strict error
|
||||||
let optionIndex = options.findIndex((o) => o.content === 'Outputs')
|
let optionIndex = options.findIndex((o) => o.content === 'Properties')
|
||||||
if (optionIndex === -1) optionIndex = options.length
|
if (optionIndex === -1) optionIndex = options.length
|
||||||
else optionIndex++
|
|
||||||
options.splice(
|
options.splice(
|
||||||
optionIndex,
|
optionIndex,
|
||||||
0,
|
0,
|
||||||
null,
|
|
||||||
{
|
{
|
||||||
content: 'Convert to nodes',
|
content: 'Convert to nodes',
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
@@ -1145,7 +1143,8 @@ export class GroupNodeHandler {
|
|||||||
{
|
{
|
||||||
content: 'Manage Group Node',
|
content: 'Manage Group Node',
|
||||||
callback: () => manageGroupNodes(this.type)
|
callback: () => manageGroupNodes(this.type)
|
||||||
}
|
},
|
||||||
|
null
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user