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"];
|
||||
return {
|
||||
widget: node.addWidget(
|
||||
|
@ -287,6 +287,7 @@ export const ComfyWidgets = {
|
|||
inputName,
|
||||
defaultVal,
|
||||
() => {},
|
||||
{"on": inputData[1].label_on, "off": inputData[1].label_off}
|
||||
)
|
||||
};
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue