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

Function toggleDropdown

vmm/ui/src/composables/useVmManager.ts:1322–1334  ·  view source on GitHub ↗
(event: Event, vm: VmListItem)

Source from the content-addressed store, hash-verified

1320 }
1321
1322 function toggleDropdown(event: Event, vm: VmListItem) {
1323 document.querySelectorAll('.dropdown-content').forEach((dropdown) => {
1324 if (dropdown.id !== `dropdown-${vm.id}`) {
1325 dropdown.classList.remove('show');
1326 }
1327 });
1328 const dropdownContent = document.getElementById(`dropdown-${vm.id}`);
1329 dropdownContent?.classList.toggle('show');
1330
1331 event.stopPropagation();
1332
1333 document.addEventListener('click', closeAllDropdowns);
1334 }
1335
1336 function onPageSizeChange() {
1337 currentPage.value = 1;

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected