From 1b038132792d948236ab22158ebbf4a0ad96c4f0 Mon Sep 17 00:00:00 2001 From: bymyself Date: Mon, 14 Apr 2025 17:46:03 -0700 Subject: [PATCH] dont show missing nodes button in legacy manager mode --- .../dialog/content/LoadWorkflowWarning.vue | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/components/dialog/content/LoadWorkflowWarning.vue b/src/components/dialog/content/LoadWorkflowWarning.vue index 2152aca50..fdb4dfd72 100644 --- a/src/components/dialog/content/LoadWorkflowWarning.vue +++ b/src/components/dialog/content/LoadWorkflowWarning.vue @@ -31,7 +31,10 @@ -
+
() +const aboutPanelStore = useAboutPanelStore() + // Get missing node packs from workflow with loading and error states const { missingNodePacks, isLoading, error, missingCoreNodes } = useMissingNodes() +// Determines if ComfyUI-Manager is installed by checking for its badge in the about panel +// This allows us to conditionally show the Manager button only when the extension is available +// TODO: Remove this check when Manager functionality is fully migrated into core +const isManagerInstalled = computed(() => { + return aboutPanelStore.badges.some( + (badge) => + badge.label.includes('ComfyUI-Manager') || + badge.url.includes('ComfyUI-Manager') + ) +}) const isLegacyManager = ref(false) const uniqueNodes = computed(() => {