fix(simulation): hide launcher panel for polygon
This commit is contained in:
parent
ee7d1dd26c
commit
17a0e7a7f5
|
|
@ -222,7 +222,6 @@ export default function App() {
|
||||||
if (!polygonRunRoute.active || polygonRunRouteOpenedRef.current) return;
|
if (!polygonRunRoute.active || polygonRunRouteOpenedRef.current) return;
|
||||||
polygonRunRouteOpenedRef.current = true;
|
polygonRunRouteOpenedRef.current = true;
|
||||||
workspace.openView("polygon-run");
|
workspace.openView("polygon-run");
|
||||||
workspace.closeNavigation();
|
|
||||||
}, [polygonRunRoute.active, workspace]);
|
}, [polygonRunRoute.active, workspace]);
|
||||||
|
|
||||||
if (!sceneSettingsCommitterRef.current) {
|
if (!sceneSettingsCommitterRef.current) {
|
||||||
|
|
@ -422,7 +421,6 @@ export default function App() {
|
||||||
setActiveRoot(rootId);
|
setActiveRoot(rootId);
|
||||||
if (rootId === "polygon") {
|
if (rootId === "polygon") {
|
||||||
workspace.openView("polygon-run");
|
workspace.openView("polygon-run");
|
||||||
workspace.closeNavigation();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
workspace.closeView();
|
workspace.closeView();
|
||||||
|
|
@ -653,7 +651,9 @@ export default function App() {
|
||||||
data-nodedc-ui
|
data-nodedc-ui
|
||||||
className="control-station"
|
className="control-station"
|
||||||
data-observation-fullscreen={observationFullscreenActive ? "true" : undefined}
|
data-observation-fullscreen={observationFullscreenActive ? "true" : undefined}
|
||||||
navigationOpen={workspace.navigationOpen && activeRoot !== null}
|
navigationOpen={
|
||||||
|
workspace.navigationOpen && activeRoot !== null && activeRoot !== "polygon"
|
||||||
|
}
|
||||||
contentOpen={workspace.contentOpen && activeDefinition !== null}
|
contentOpen={workspace.contentOpen && activeDefinition !== null}
|
||||||
contentExpanded={workspace.contentExpanded}
|
contentExpanded={workspace.contentExpanded}
|
||||||
header={header}
|
header={header}
|
||||||
|
|
@ -667,7 +667,7 @@ export default function App() {
|
||||||
onOpenDevice={() => openView("local-device")}
|
onOpenDevice={() => openView("local-device")}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
navigation={currentRoot ? (
|
navigation={currentRoot && activeRoot !== "polygon" ? (
|
||||||
<AdminNavigationPanel
|
<AdminNavigationPanel
|
||||||
eyebrow="MISSION CORE"
|
eyebrow="MISSION CORE"
|
||||||
title={currentRoot.title}
|
title={currentRoot.title}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue