Restyle missing node warning dialog (#1348)

* nit

* Restyle missing node warning dialog

* nit

* nit
This commit is contained in:
Chenlei Hu
2024-10-28 16:45:47 -04:00
committed by GitHub
parent 997b5ee819
commit 229896a4b7
4 changed files with 39 additions and 98 deletions

View File

@@ -2188,12 +2188,9 @@ export class ComfyApp {
localStorage.setItem('litegrapheditor_clipboard', old)
}
#showMissingNodesError(missingNodeTypes, hasAddedNodes = true) {
#showMissingNodesError(missingNodeTypes) {
if (useSettingStore().get('Comfy.Workflow.ShowMissingNodesWarning')) {
showLoadWorkflowWarning({
missingNodeTypes,
hasAddedNodes
})
showLoadWorkflowWarning({ missingNodeTypes })
}
this.logging.addEntry('Comfy.App', 'warn', {
@@ -2823,8 +2820,7 @@ export class ComfyApp {
if (missingNodeTypes.length) {
this.#showMissingNodesError(
// @ts-expect-error
missingNodeTypes.map((t) => t.class_type),
false
missingNodeTypes.map((t) => t.class_type)
)
return
}