mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
[fix] Correct Install All button visibility for manager UI states
- Install All Missing Custom Nodes button only shows for NEW_UI state - Legacy UI state only shows Open Manager button - Disabled state shows no buttons - Matches original PR #5063 behavior exactly 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -33,6 +33,7 @@
|
|||||||
</ListBox>
|
</ListBox>
|
||||||
<div v-if="showManagerButtons" class="flex justify-end py-3">
|
<div v-if="showManagerButtons" class="flex justify-end py-3">
|
||||||
<PackInstallButton
|
<PackInstallButton
|
||||||
|
v-if="showInstallAllButton"
|
||||||
:disabled="
|
:disabled="
|
||||||
isLoading || !!error || missingNodePacks.length === 0 || isInstalling
|
isLoading || !!error || missingNodePacks.length === 0 || isInstalling
|
||||||
"
|
"
|
||||||
@@ -115,6 +116,11 @@ const showManagerButtons = computed(() => {
|
|||||||
return managerStateStore.managerUIState !== ManagerUIState.DISABLED
|
return managerStateStore.managerUIState !== ManagerUIState.DISABLED
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Only show Install All button for NEW_UI (new manager with v4 support)
|
||||||
|
const showInstallAllButton = computed(() => {
|
||||||
|
return managerStateStore.managerUIState === ManagerUIState.NEW_UI
|
||||||
|
})
|
||||||
|
|
||||||
const openManager = async () => {
|
const openManager = async () => {
|
||||||
const state = managerStateStore.managerUIState
|
const state = managerStateStore.managerUIState
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user