"...ldm/git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "509c7dfc6df85a2cb03b3936e8d5fa2299e5e4c1"
Commit 38cfba04 authored by comfyanonymous's avatar comfyanonymous
Browse files

Rename toggle to boolean.

parent eb5191f9
...@@ -279,7 +279,7 @@ export const ComfyWidgets = { ...@@ -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 = { ...@@ -287,6 +287,7 @@ export const ComfyWidgets = {
inputName, inputName,
defaultVal, defaultVal,
() => {}, () => {},
{"on": inputData[1].label_on, "off": inputData[1].label_off}
) )
}; };
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment