mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-09 07:00:06 +00:00
Add support for node/input/output tooltips (#287)
* Add support for node/input/output tooltips * pr feedback * Remove
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user