diff --git a/src/const/ApiConst.js b/src/const/ApiConst.js index 082a9b9..a154b60 100644 --- a/src/const/ApiConst.js +++ b/src/const/ApiConst.js @@ -119,6 +119,7 @@ export const TOKEN_ADW = export let BASE_OSPRO = "https://project-api.ospro.id"; // export let BASE_OSPRO = "http://localhost:8444/adw-backend"; + export let BASE_SIMPRO_LUMEN = `${BASE_OSPRO}/api`; export let BASE_SIMPRO_LUMEN_IMAGE = `${BASE_OSPRO}/assets/image`; export let BASE_SIMPRO_LUMEN_FILE = `${BASE_OSPRO}/assets/file/project`; diff --git a/src/views/SimproV2/CreatedProyek/DialogGantt.js b/src/views/SimproV2/CreatedProyek/DialogGantt.js index 738a075..62400ce 100644 --- a/src/views/SimproV2/CreatedProyek/DialogGantt.js +++ b/src/views/SimproV2/CreatedProyek/DialogGantt.js @@ -239,7 +239,7 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName <> - {hierarchyName ? ( + {hierarchyName ? ( Project {hierarchyName} @@ -247,28 +247,28 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName ) : (
Gantt Project {proyekName}
)} - - - {!hierarchyId && ( - - )} - +
+ + {!hierarchyId && ( + + )} +
diff --git a/src/views/SimproV2/Gantt/GanttFrame.js b/src/views/SimproV2/Gantt/GanttFrame.js index 8765f83..b58b63c 100644 --- a/src/views/SimproV2/Gantt/GanttFrame.js +++ b/src/views/SimproV2/Gantt/GanttFrame.js @@ -20,6 +20,7 @@ const GanttFrame = React.memo((props) => { const { versionGanttId, idProject, ro, timestamp } = props; const iframeSrc = `https://project-gantt.ospro.id/edit-mode/index.html?base_url=${BASE_SIMPRO_LUMEN}&gantt_id=${versionGanttId}&proyek_id=${idProject}&token=${token}&ro=${ro}×tamp=${timestamp}`; + const [batchEntityData, setBatchEntityData] = useState(null); useEffect(() => {