MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / handleChangeTab

Function handleChangeTab

frontend/src/hooks/useFileManager.ts:201–211  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

199 };
200
201 const handleChangeTab = async (key: string) => {
202 const path = currentTabs.value.find((tab) => tab.key === key)?.path || "";
203 activeTab.value = key;
204 updateBreadcrumbs(path);
205
206 spinning.value = true;
207 operationForm.value.name = "";
208 operationForm.value.current = 1;
209 await getFileList();
210 spinning.value = false;
211 };
212
213 const parsePath = (path: string) => {
214 if (!path) return [];

Callers 3

initDefaultTabFunction · 0.85
handleRemoveTabFunction · 0.85
onEditTabsFunction · 0.85

Calls 2

updateBreadcrumbsFunction · 0.85
getFileListFunction · 0.85

Tested by

no test coverage detected