fix: when pack is changed, button should be changed too

This commit is contained in:
Jin Yi
2026-01-23 15:22:44 +09:00
parent 5d158e1487
commit c094ec8e17

View File

@@ -116,7 +116,7 @@
<script setup lang="ts">
import { whenever } from '@vueuse/core'
import { computed, provide, ref, watch } from 'vue'
import { computed, provide, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import PropertiesAccordionItem from '@/components/rightSidePanel/layout/PropertiesAccordionItem.vue'
@@ -174,14 +174,7 @@ const { canTryNightlyUpdate, isUpdateAvailable } = usePackUpdateStatus(
() => nodePack
)
const isAllInstalled = ref(false)
watch(
() => managerStore.installedPacks,
() => {
isAllInstalled.value = isPackInstalled(nodePack.id)
},
{ immediate: true }
)
const isAllInstalled = computed(() => isPackInstalled(nodePack.id))
const { checkNodeCompatibility } = useConflictDetection()