|
|
@ -597,16 +597,23 @@ export class ComfyUI { |
|
|
|
if (!confirmClear.value || confirm("Clear workflow?")) { |
|
|
|
if (!confirmClear.value || confirm("Clear workflow?")) { |
|
|
|
app.clean(); |
|
|
|
app.clean(); |
|
|
|
app.graph.clear(); |
|
|
|
app.graph.clear(); |
|
|
|
|
|
|
|
app.resetView(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}), |
|
|
|
}), |
|
|
|
$el("button", { |
|
|
|
$el("button", { |
|
|
|
id: "comfy-load-default-button", textContent: "Load Default", onclick: async () => { |
|
|
|
id: "comfy-load-default-button", textContent: "Load Default", onclick: async () => { |
|
|
|
if (!confirmClear.value || confirm("Load default workflow?")) { |
|
|
|
if (!confirmClear.value || confirm("Load default workflow?")) { |
|
|
|
|
|
|
|
app.resetView(); |
|
|
|
await app.loadGraphData() |
|
|
|
await app.loadGraphData() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
$el("button", { |
|
|
|
|
|
|
|
id: "comfy-reset-view-button", textContent: "Reset View", onclick: async () => { |
|
|
|
|
|
|
|
app.resetView(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}), |
|
|
|
]); |
|
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
const devMode = this.settings.addSetting({ |
|
|
|
const devMode = this.settings.addSetting({ |
|
|
|