Skip to content

Commit

Permalink
Update ui_mixlab.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowcz007 committed Mar 24, 2024
1 parent 2e4d983 commit 4c42949
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions web/javascript/ui_mixlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -943,18 +943,19 @@ app.registerExtension({
}
]

// let text_widget = node.widgets.filter(
// w => w.name === 'text' && typeof w.value == 'string'
// )
// if (text_widget && text_widget.length == 1) {
// opts.push({
// content: 'Text-to-Text ♾️Mixlab', // with a name
// callback: () => {
// LGraphCanvas.prototype.text2text(node)
// } // and the callback
// })
// }

if (node.widgets) {
// let text_widget = node.widgets.filter(
// w => w.name === 'text' && typeof w.value == 'string'
// )
// if (text_widget && text_widget.length == 1) {
// opts.push({
// content: 'Text-to-Text ♾️Mixlab', // with a name
// callback: () => {
// LGraphCanvas.prototype.text2text(node)
// } // and the callback
// })
// }
}

opts = addSmartMenu(opts, node)

Expand Down

0 comments on commit 4c42949

Please sign in to comment.