[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:
Christian Byrne
2025-04-23 06:48:45 +08:00
committed by GitHub
parent 262991db6b
commit 8558f87547
22 changed files with 1174 additions and 155 deletions

View File

@@ -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)
})