Add support for node/input/output tooltips (#287)

* Add support for node/input/output tooltips

* pr feedback

* Remove
This commit is contained in:
pythongosssss
2024-08-04 16:54:46 +01:00
committed by GitHub
parent c48f68e53e
commit 7a980f46c9
10 changed files with 227 additions and 10 deletions

View File

@@ -428,6 +428,13 @@ export class ComfyUI {
defaultValue: 'default'
})
this.settings.addSetting({
id: 'Comfy.EnableTooltips',
name: 'Enable Tooltips',
type: 'boolean',
defaultValue: true
})
const fileInput = $el('input', {
id: 'comfy-file-input',
type: 'file',
@@ -437,7 +444,7 @@ export class ComfyUI {
onchange: () => {
app.handleFile(fileInput.files[0])
}
}) as HTMLInputElement
})
this.loadFile = () => fileInput.click()