From 293993e7deb7a2c525e02f5374855c60301392f6 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Sun, 18 May 2025 09:16:24 -0700 Subject: [PATCH] Hide manager button in missing nodes dialog when manager is not installed (#3925) --- .../dialog/content/LoadWorkflowWarning.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/components/dialog/content/LoadWorkflowWarning.vue b/src/components/dialog/content/LoadWorkflowWarning.vue index f670a8f0a8..bc10a381a1 100644 --- a/src/components/dialog/content/LoadWorkflowWarning.vue +++ b/src/components/dialog/content/LoadWorkflowWarning.vue @@ -30,7 +30,7 @@ -
+
@@ -42,6 +42,7 @@ import { computed } from 'vue' import NoResultsPlaceholder from '@/components/common/NoResultsPlaceholder.vue' import { useDialogService } from '@/services/dialogService' +import { useAboutPanelStore } from '@/stores/aboutPanelStore' import type { MissingNodeType } from '@/types/comfy' import { ManagerTab } from '@/types/comfyManagerTypes' @@ -49,6 +50,19 @@ const props = defineProps<{ missingNodeTypes: MissingNodeType[] }>() +const aboutPanelStore = useAboutPanelStore() + +// 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 uniqueNodes = computed(() => { const seenTypes = new Set() return props.missingNodeTypes