mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-25 16:59:45 +00:00
[feat] Add import failure detection and error handling for package manager (#4600)
This commit is contained in:
@@ -432,14 +432,19 @@ export const useDialogService = () => {
|
||||
}
|
||||
|
||||
function showNodeConflictDialog(
|
||||
options: InstanceType<typeof NodeConflictDialogContent>['$props'] & {
|
||||
options: {
|
||||
showAfterWhatsNew?: boolean
|
||||
dialogComponentProps?: DialogComponentProps
|
||||
buttonText?: string
|
||||
onButtonClick?: () => void
|
||||
} = {}
|
||||
) {
|
||||
const { dialogComponentProps, buttonText, onButtonClick, ...props } =
|
||||
options
|
||||
const {
|
||||
dialogComponentProps,
|
||||
buttonText,
|
||||
onButtonClick,
|
||||
showAfterWhatsNew
|
||||
} = options
|
||||
|
||||
return dialogStore.showDialog({
|
||||
key: 'global-node-conflict',
|
||||
@@ -461,7 +466,9 @@ export const useDialogService = () => {
|
||||
},
|
||||
...dialogComponentProps
|
||||
},
|
||||
props,
|
||||
props: {
|
||||
showAfterWhatsNew
|
||||
},
|
||||
footerProps: {
|
||||
buttonText,
|
||||
onButtonClick
|
||||
|
||||
Reference in New Issue
Block a user