@@ -68,14 +77,18 @@ const SideBarLeft: React.FC = () => {
} else {
return (
<>
-
-
- {activeOption === "Outline" ?
:
}
-
+ {!isVersionSaved && (
+ <>
+
+
+ {activeOption === "Outline" ?
:
}
+
+ >
+ )}
>
);
}
diff --git a/app/src/components/layout/sidebarRight/SideBarRight.tsx b/app/src/components/layout/sidebarRight/SideBarRight.tsx
index c027bdb..05774e2 100644
--- a/app/src/components/layout/sidebarRight/SideBarRight.tsx
+++ b/app/src/components/layout/sidebarRight/SideBarRight.tsx
@@ -14,6 +14,7 @@ import Visualization from "./visualization/Visualization";
import Analysis from "./analysis/Analysis";
import Simulations from "./simulation/Simulations";
import useVersionHistoryStore, {
+ useSaveVersion,
useSelectedFloorItem,
} from "../../../store/builder/store";
import {
@@ -34,6 +35,7 @@ const SideBarRight: React.FC = () => {
const { selectedEventData } = useSelectedEventData();
const { selectedEventSphere } = useSelectedEventSphere();
const { viewVersionHistory, setVersionHistory } = useVersionHistoryStore();
+ const { isVersionSaved } = useSaveVersion();
// Reset activeList whenever activeModule changes
useEffect(() => {
@@ -60,10 +62,14 @@ const SideBarRight: React.FC = () => {
return (
- {toggleUIRight && (
+ {toggleUIRight && !isVersionSaved && (
{activeModule !== "simulation" && (
-
setComparePopUp(true)}>
+
+
@@ -269,7 +284,7 @@ const Simulations: React.FC = () => {
{comparePopUp && (