diff --git a/src/views/Dashboard/DashboardCustomer.js b/src/views/Dashboard/DashboardCustomer.js index 9b5e55f..5b8a3e5 100644 --- a/src/views/Dashboard/DashboardCustomer.js +++ b/src/views/Dashboard/DashboardCustomer.js @@ -81,6 +81,12 @@ const DashboardCustomer = () => { value: PROJECT_ID.toString(), operator: "AND", }, + { + name: "gantt_id", + logic_operator: "=", + value: GANTT_ID.toString(), + operator: "AND", + } ], joins: [ { @@ -125,6 +131,7 @@ const DashboardCustomer = () => { const payload = { "sender_id": localStorage.getItem('user_id'), "project_id": PROJECT_ID, + "gantt_id": GANTT_ID, "comment": comment } const result = await axios.post(URL, payload, HEADER).then(res => res).catch(err => err.response) diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index 3e8e65a..ce3f888 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/src/views/Dashboard/DashboardProject.js @@ -36,6 +36,7 @@ const DashboardProject = () => { const { PROJECT_ID, GANTT_ID } = useParams(); // const URL_GANTT = `http://103.73.125.81:8446/index.html?base_url=http://103.73.125.81:8444/api&gantt_id=${GANTT_ID}&proyek_id=${PROJECT_ID}&token=${token}&ro=1`; const URL_GANTT = `https://adw-gantt.ospro.id/index.html?base_url=${BASE_OSPRO}/api&gantt_id=${GANTT_ID}&proyek_id=${PROJECT_ID}&token=${token}&ro=1`; + // const URL_GANTT = ''; const mapRef = useRef() const [projectName, setProjectName] = useState("Project Tower ABC"); const [projectManagerName, setProjectManagerName] = useState("John Doe"); @@ -92,6 +93,12 @@ const DashboardProject = () => { value: PROJECT_ID.toString(), operator: "AND", }, + { + name: "gantt_id", + logic_operator: "=", + value: GANTT_ID.toString(), + operator: "AND", + } ], joins: [ { @@ -136,6 +143,7 @@ const DashboardProject = () => { const payload = { "sender_id": localStorage.getItem('user_id'), "project_id": PROJECT_ID, + "gantt_id": GANTT_ID, "comment": comment } const result = await axios.post(URL, payload, HEADER).then(res => res).catch(err => err.response)