MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / tabStoreMiddleWare

Function tabStoreMiddleWare

frontend/src/utils/router.ts:46–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44};
45
46const tabStoreMiddleWare = () => {
47 try {
48 let route = router.currentRoute;
49 if (route.value.meta.ignoreTab) {
50 return;
51 }
52 const tabsStore = TabsStore();
53 tabsStore.addTab(route.value);
54 tabsStore.activeTabPath = route.value?.path;
55 } catch (error) {}
56};

Callers 1

pushWithAccessCheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected