[Refactor] Unify error dialog component (#3265)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2025-03-28 11:53:29 -04:00
committed by GitHub
parent 62fdcd4949
commit 504b717575
13 changed files with 178 additions and 228 deletions

View File

@@ -741,7 +741,7 @@ export class ComfyApp {
api.addEventListener('execution_error', ({ detail }) => {
this.lastExecutionError = detail
useDialogService().showExecutionErrorDialog({ error: detail })
useDialogService().showExecutionErrorDialog(detail)
this.canvas.draw(true, true)
})
@@ -1129,7 +1129,7 @@ export class ComfyApp {
} catch (error) {
useDialogService().showErrorDialog(error, {
title: t('errorDialog.loadWorkflowTitle'),
errorType: 'loadWorkflowError'
reportType: 'loadWorkflowError'
})
return
}