File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/components/dialog/content/manager/packCard Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 66 <i class =" pi pi-download text-muted" ></i >
77 <span >{{ formattedDownloads }}</span >
88 </div >
9- <PackInstallButton :node-packs =" [nodePack]" />
9+ <PackInstallButton v-if =" !isInstalled" :node-packs =" [nodePack]" />
10+ <PackEnableToggle v-else :node-pack =" nodePack" />
1011 </div >
1112</template >
1213
1314<script setup lang="ts">
1415import { computed } from ' vue'
1516import { useI18n } from ' vue-i18n'
1617
18+ import PackEnableToggle from ' @/components/dialog/content/manager/button/PackEnableToggle.vue'
1719import PackInstallButton from ' @/components/dialog/content/manager/button/PackInstallButton.vue'
20+ import { useComfyManagerStore } from ' @/stores/comfyManagerStore'
1821import type { components } from ' @/types/comfyRegistryTypes'
1922
2023const { nodePack } = defineProps <{
2124 nodePack: components [' schemas' ][' Node' ]
2225}>()
2326
27+ const { isPackInstalled } = useComfyManagerStore ()
28+ const isInstalled = computed (() => isPackInstalled (nodePack ?.id ))
29+
2430const { n } = useI18n ()
2531
2632const formattedDownloads = computed (() =>
You can’t perform that action at this time.
0 commit comments