mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Rename toggle to boolean.
This commit is contained in:
parent
eb5191f911
commit
38cfba0430
@ -279,7 +279,7 @@ export const ComfyWidgets = {
|
|||||||
),
|
),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
TOGGLE(node, inputName, inputData) {
|
BOOLEAN(node, inputName, inputData) {
|
||||||
let defaultVal = inputData[1]["default"];
|
let defaultVal = inputData[1]["default"];
|
||||||
return {
|
return {
|
||||||
widget: node.addWidget(
|
widget: node.addWidget(
|
||||||
@ -287,6 +287,7 @@ export const ComfyWidgets = {
|
|||||||
inputName,
|
inputName,
|
||||||
defaultVal,
|
defaultVal,
|
||||||
() => {},
|
() => {},
|
||||||
|
{"on": inputData[1].label_on, "off": inputData[1].label_off}
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user