Rename toggle to boolean.

This commit is contained in:
comfyanonymous 2023-08-01 03:08:35 -04:00
parent eb5191f911
commit 38cfba0430

View File

@ -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}
) )
}; };
}, },