MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / openImageRegistry

Function openImageRegistry

vmm/ui/src/composables/useVmManager.ts:1535–1545  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1533 }
1534
1535 async function openImageRegistry() {
1536 showImageRegistry.value = true;
1537 await Promise.all([loadImages(), loadRegistryImages()]);
1538 registryRefreshTimer = setInterval(async () => {
1539 await loadRegistryImages();
1540 // Refresh local images if something just finished pulling
1541 if (registryImages.value.some((img: any) => img.pulling)) {
1542 await loadImages();
1543 }
1544 }, 3000);
1545 }
1546
1547 watch(showImageRegistry, (open) => {
1548 if (!open && registryRefreshTimer) {

Callers

nothing calls this directly

Calls 2

loadImagesFunction · 0.85
loadRegistryImagesFunction · 0.85

Tested by

no test coverage detected