mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
[fix] Add conflict detection when installed packages list updates
- Import useConflictDetection composable in comfyManagerStore - Call performConflictDetection after refreshing installed packages list - Ensures conflict status stays up-to-date when packages change - Follows existing codebase patterns for composable usage
This commit is contained in:
@@ -78,7 +78,9 @@ export function useConflictDetection() {
|
|||||||
try {
|
try {
|
||||||
// Get system stats from store (primary source of system information)
|
// Get system stats from store (primary source of system information)
|
||||||
const systemStatsStore = useSystemStatsStore()
|
const systemStatsStore = useSystemStatsStore()
|
||||||
await systemStatsStore.fetchSystemStats()
|
if (!systemStatsStore.systemStats) {
|
||||||
|
await systemStatsStore.fetchSystemStats()
|
||||||
|
}
|
||||||
|
|
||||||
// Fetch version information from backend (with error resilience)
|
// Fetch version information from backend (with error resilience)
|
||||||
const [frontendVersion] = await Promise.allSettled([
|
const [frontendVersion] = await Promise.allSettled([
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { ref, watch } from 'vue'
|
|||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
|
|
||||||
import { useCachedRequest } from '@/composables/useCachedRequest'
|
import { useCachedRequest } from '@/composables/useCachedRequest'
|
||||||
|
import { useConflictDetection } from '@/composables/useConflictDetection'
|
||||||
import { useManagerQueue } from '@/composables/useManagerQueue'
|
import { useManagerQueue } from '@/composables/useManagerQueue'
|
||||||
import { useServerLogs } from '@/composables/useServerLogs'
|
import { useServerLogs } from '@/composables/useServerLogs'
|
||||||
import { useComfyManagerService } from '@/services/comfyManagerService'
|
import { useComfyManagerService } from '@/services/comfyManagerService'
|
||||||
@@ -122,6 +123,10 @@ export const useComfyManagerStore = defineStore('comfyManager', () => {
|
|||||||
return key.split('@')[0]
|
return key.split('@')[0]
|
||||||
})
|
})
|
||||||
installedPacks.value = packsWithCleanedKeys
|
installedPacks.value = packsWithCleanedKeys
|
||||||
|
// Run conflict detection for all installed packages
|
||||||
|
// This ensures conflict status is always up-to-date when installed list changes
|
||||||
|
const { performConflictDetection } = useConflictDetection()
|
||||||
|
await performConflictDetection()
|
||||||
}
|
}
|
||||||
isStale.value = false
|
isStale.value = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user