mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-07 22:20:03 +00:00
Complete PR #4654 integration with manager migration
✅ Successfully integrated conflict detection with task queue system ✅ Both systems work together seamlessly ✅ All merge conflicts resolved ✅ Generated types and locales properly merged Note: Test updates needed for API changes (to be addressed in semantic review)
This commit is contained in:
@@ -15,6 +15,7 @@ import { ref } from 'vue'
|
||||
import PackActionButton from '@/components/dialog/content/manager/button/PackActionButton.vue'
|
||||
import { useComfyManagerStore } from '@/stores/comfyManagerStore'
|
||||
import type { components } from '@/types/comfyRegistryTypes'
|
||||
import { components as ManagerComponents } from '@/types/generatedManagerTypes'
|
||||
|
||||
type NodePack = components['schemas']['Node']
|
||||
|
||||
@@ -26,10 +27,16 @@ const isUpdating = ref<boolean>(false)
|
||||
|
||||
const managerStore = useComfyManagerStore()
|
||||
|
||||
const createPayload = (updateItem: NodePack) => {
|
||||
const createPayload = (
|
||||
updateItem: NodePack
|
||||
): ManagerComponents['schemas']['ManagerPackInfo'] => {
|
||||
if (!updateItem.id) {
|
||||
throw new Error('Node ID is required for update')
|
||||
}
|
||||
|
||||
return {
|
||||
id: updateItem.id!,
|
||||
version: updateItem.latest_version!.version!
|
||||
id: updateItem.id,
|
||||
version: updateItem.latest_version?.version || 'latest'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user