mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-21 15:24:09 +00:00
[API Node] Better execution error handling (#3587)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -8,7 +8,6 @@ import MissingModelsWarning from '@/components/dialog/content/MissingModelsWarni
|
||||
import PromptDialogContent from '@/components/dialog/content/PromptDialogContent.vue'
|
||||
import SettingDialogContent from '@/components/dialog/content/SettingDialogContent.vue'
|
||||
import SignInContent from '@/components/dialog/content/SignInContent.vue'
|
||||
import SignInRequiredDialogContent from '@/components/dialog/content/SignInRequiredDialogContent.vue'
|
||||
import TopUpCreditsDialogContent from '@/components/dialog/content/TopUpCreditsDialogContent.vue'
|
||||
import ManagerDialogContent from '@/components/dialog/content/manager/ManagerDialogContent.vue'
|
||||
import ManagerHeader from '@/components/dialog/content/manager/ManagerHeader.vue'
|
||||
@@ -348,20 +347,13 @@ export const useDialogService = () => {
|
||||
})
|
||||
}
|
||||
|
||||
function showSignInRequiredDialog(options: { type: 'signIn' | 'credits' }) {
|
||||
dialogStore.showDialog({
|
||||
key: 'signin-required',
|
||||
component: SignInRequiredDialogContent,
|
||||
props: options
|
||||
})
|
||||
}
|
||||
|
||||
function showTopUpCreditsDialog(options?: {
|
||||
isInsufficientCredits?: boolean
|
||||
}) {
|
||||
return dialogStore.showDialog({
|
||||
key: 'top-up-credits',
|
||||
component: TopUpCreditsDialogContent,
|
||||
headerComponent: ComfyOrgHeader,
|
||||
props: options,
|
||||
dialogComponentProps: {
|
||||
pt: {
|
||||
@@ -384,7 +376,6 @@ export const useDialogService = () => {
|
||||
showErrorDialog,
|
||||
showApiNodesSignInDialog,
|
||||
showSignInDialog,
|
||||
showSignInRequiredDialog,
|
||||
showTopUpCreditsDialog,
|
||||
prompt,
|
||||
confirm
|
||||
|
||||
Reference in New Issue
Block a user