mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
remove the temporary check for legacy custom node version of manager
This commit is contained in:
@@ -31,10 +31,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</ListBox>
|
</ListBox>
|
||||||
<div
|
<div v-if="!isLegacyManager" class="flex justify-end py-3">
|
||||||
v-if="isManagerInstalled && !isLegacyManager"
|
|
||||||
class="flex justify-end py-3"
|
|
||||||
>
|
|
||||||
<PackInstallButton
|
<PackInstallButton
|
||||||
:disabled="isLoading || !!error || missingNodePacks.length === 0"
|
:disabled="isLoading || !!error || missingNodePacks.length === 0"
|
||||||
:node-packs="missingNodePacks"
|
:node-packs="missingNodePacks"
|
||||||
@@ -56,7 +53,6 @@ import PackInstallButton from '@/components/dialog/content/manager/button/PackIn
|
|||||||
import { useMissingNodes } from '@/composables/nodePack/useMissingNodes'
|
import { useMissingNodes } from '@/composables/nodePack/useMissingNodes'
|
||||||
import { useComfyManagerService } from '@/services/comfyManagerService'
|
import { useComfyManagerService } from '@/services/comfyManagerService'
|
||||||
import { useDialogService } from '@/services/dialogService'
|
import { useDialogService } from '@/services/dialogService'
|
||||||
import { useAboutPanelStore } from '@/stores/aboutPanelStore'
|
|
||||||
import type { MissingNodeType } from '@/types/comfy'
|
import type { MissingNodeType } from '@/types/comfy'
|
||||||
import { ManagerTab } from '@/types/comfyManagerTypes'
|
import { ManagerTab } from '@/types/comfyManagerTypes'
|
||||||
|
|
||||||
@@ -64,22 +60,10 @@ const props = defineProps<{
|
|||||||
missingNodeTypes: MissingNodeType[]
|
missingNodeTypes: MissingNodeType[]
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const aboutPanelStore = useAboutPanelStore()
|
|
||||||
|
|
||||||
// Get missing node packs from workflow with loading and error states
|
// Get missing node packs from workflow with loading and error states
|
||||||
const { missingNodePacks, isLoading, error, missingCoreNodes } =
|
const { missingNodePacks, isLoading, error, missingCoreNodes } =
|
||||||
useMissingNodes()
|
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 isLegacyManager = ref(false)
|
||||||
|
|
||||||
const uniqueNodes = computed(() => {
|
const uniqueNodes = computed(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user