[Manager] Fix loading state on uninstall button (#3413)

This commit is contained in:
Christian Byrne
2025-04-12 10:14:49 +08:00
committed by GitHub
parent 42c004d41d
commit e4a5355f58
3 changed files with 19 additions and 11 deletions

View File

@@ -5,8 +5,10 @@
nodePacks.length > 1 ? $t('manager.installSelected') : $t('g.install')
"
severity="secondary"
:loading="isInstalling"
:loading-message="$t('g.installing')"
@action="installAllPacks"
@click="onClick"
/>
</template>
@@ -31,6 +33,10 @@ const { nodePacks } = defineProps<{
const isInstalling = inject(IsInstallingKey, ref(false))
const onClick = (): void => {
isInstalling.value = true
}
const managerStore = useComfyManagerStore()
const createPayload = (installItem: NodePack) => {