merged and added the layout
This commit is contained in:
@@ -13,11 +13,12 @@ import { deleteProductApi } from "../../../../services/simulation/products/delet
|
||||
import { renameProductApi } from "../../../../services/simulation/products/renameProductApi";
|
||||
import { determineExecutionMachineSequences } from "../../../../modules/simulation/simulator/functions/determineExecutionMachineSequences";
|
||||
import ComparePopUp from "../../../ui/compareVersion/Compare";
|
||||
import { useCompareStore, useIsComparing } from "../../../../store/builder/store";
|
||||
import { useCompareStore, useIsComparing, useSimulateId } from "../../../../store/builder/store";
|
||||
import { useToggleStore } from "../../../../store/ui/useUIToggleStore";
|
||||
import { useParams } from "react-router-dom";
|
||||
import { useSceneContext } from "../../../../modules/scene/sceneContext";
|
||||
import { getSimulationData, updateSimulateData } from "../../scenes/functions/simulationStorage";
|
||||
import { get } from "http";
|
||||
|
||||
interface Event {
|
||||
modelName: string;
|
||||
@@ -38,11 +39,21 @@ const Simulations: React.FC = () => {
|
||||
const { selectedVersion } = versionStore();
|
||||
const { comparePopUp, setComparePopUp } = useCompareStore();
|
||||
const { setIsComparing } = useIsComparing();
|
||||
const { simulateId } = useSimulateId();
|
||||
|
||||
const handleSaveVersion = () => {
|
||||
const handleSaveVersion = async () => {
|
||||
setIsComparing(true);
|
||||
setComparePopUp(false);
|
||||
setToggleUI(false, false);
|
||||
const singleData = {
|
||||
projectId: projectId,
|
||||
versionId: selectedVersion?.versionId || "",
|
||||
productUuid: selectedProduct?.productUuid || "",
|
||||
simulatedId: simulateId,
|
||||
};
|
||||
console.log("singleData: ", singleData);
|
||||
const getData = await updateSimulateData(singleData);
|
||||
echo.log(getData.message);
|
||||
};
|
||||
|
||||
const handleAddProduct = () => {
|
||||
|
||||
Reference in New Issue
Block a user