mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-31 13:29:55 +00:00
[API Node] User management (#3567)
Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Chenlei Hu <hcl@comfy.org>
This commit is contained in:
@@ -673,7 +673,17 @@ export class ComfyApp {
|
||||
})
|
||||
|
||||
api.addEventListener('execution_error', ({ detail }) => {
|
||||
useDialogService().showExecutionErrorDialog(detail)
|
||||
// Check if this is an auth-related error or credits-related error
|
||||
if (detail.exception_message === 'Please login first to use this node.') {
|
||||
useDialogService().showSignInRequiredDialog({ type: 'signIn' })
|
||||
} else if (
|
||||
detail.exception_message ===
|
||||
'Payment Required: Please add credits to your account to use this node.'
|
||||
) {
|
||||
useDialogService().showSignInRequiredDialog({ type: 'credits' })
|
||||
} else {
|
||||
useDialogService().showExecutionErrorDialog(detail)
|
||||
}
|
||||
this.canvas.draw(true, true)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user