From f10b693bbb184f36c9d3fe629d5aad7a2f3e322a 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 96c632be8..654606d16 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(() => {