fix(simulation): hide launcher panel for polygon

This commit is contained in:
DCCONSTRUCTIONS 2026-07-24 21:13:17 +03:00
parent ee7d1dd26c
commit 17a0e7a7f5
1 changed files with 4 additions and 4 deletions

View File

@ -222,7 +222,6 @@ export default function App() {
if (!polygonRunRoute.active || polygonRunRouteOpenedRef.current) return;
polygonRunRouteOpenedRef.current = true;
workspace.openView("polygon-run");
workspace.closeNavigation();
}, [polygonRunRoute.active, workspace]);
if (!sceneSettingsCommitterRef.current) {
@ -422,7 +421,6 @@ export default function App() {
setActiveRoot(rootId);
if (rootId === "polygon") {
workspace.openView("polygon-run");
workspace.closeNavigation();
return;
}
workspace.closeView();
@ -653,7 +651,9 @@ export default function App() {
data-nodedc-ui
className="control-station"
data-observation-fullscreen={observationFullscreenActive ? "true" : undefined}
navigationOpen={workspace.navigationOpen && activeRoot !== null}
navigationOpen={
workspace.navigationOpen && activeRoot !== null && activeRoot !== "polygon"
}
contentOpen={workspace.contentOpen && activeDefinition !== null}
contentExpanded={workspace.contentExpanded}
header={header}
@ -667,7 +667,7 @@ export default function App() {
onOpenDevice={() => openView("local-device")}
/>
}
navigation={currentRoot ? (
navigation={currentRoot && activeRoot !== "polygon" ? (
<AdminNavigationPanel
eyebrow="MISSION CORE"
title={currentRoot.title}