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

Function goToPage

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

Source from the content-addressed store, hash-verified

1213 }
1214
1215 function goToPage() {
1216 let page = Number.parseInt(String(pageInput.value), 10);
1217 if (Number.isNaN(page) || page < 1) {
1218 page = 1;
1219 } else if (page > maxPage.value) {
1220 page = maxPage.value;
1221 }
1222 pageInput.value = page;
1223 currentPage.value = page;
1224 loadVMList();
1225 }
1226
1227 function closeAllDropdowns() {
1228 document.querySelectorAll('.dropdown-content').forEach((dropdown) => dropdown.classList.remove('show'));

Callers

nothing calls this directly

Calls 1

loadVMListFunction · 0.85

Tested by

no test coverage detected