From 2e16341deb307123b701f262ebff935c4cf7b5dd Mon Sep 17 00:00:00 2001 From: wahyuun Date: Fri, 20 Oct 2023 10:29:22 +0700 Subject: [PATCH 1/2] update col Schedule --- src/views/Dashboard/DashboardProject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index 2cf31c8..5d60e01 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/src/views/Dashboard/DashboardProject.js @@ -1018,7 +1018,7 @@ const DashboardProject = () => { - +
Date: Fri, 20 Oct 2023 12:55:10 +0700 Subject: [PATCH 2/2] add condition is Scurve --- src/views/Dashboard/DashboardProject.js | 177 +++++++++++++----------- 1 file changed, 94 insertions(+), 83 deletions(-) diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index 5d60e01..b9a0fd8 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/src/views/Dashboard/DashboardProject.js @@ -126,6 +126,7 @@ const DashboardProject = () => { const [isReadyGanttParents, setIsReadyGanttParents] = useState(false); const [calculationStatus, setCalculationStatus] = useState(false); const [isHierarchy, setIsHierarchy] = useState(false); + const [isScurve, setIsScurve] = useState(false); let history = useHistory(); useEffect(() => { @@ -136,6 +137,12 @@ const DashboardProject = () => { getComments(); getGantt(); getGanttParents(); + const currentURL = window.location.href; + if (currentURL.includes("dashboard-project")) { + setIsScurve(true); + } else { + setIsScurve(false); + } return () => { console.log("unmount RenderMap"); }; @@ -1018,7 +1025,7 @@ const DashboardProject = () => { - +
{
- {/* -
+ {isScurve === true ? ( + +
{
- */} + + ) : ''}
{ - {/* - -
*/} - {/*
Health By Schedule
-
-
On Budget
-
*/} - {/* - Total Invoice - - {isReadyIntegrationInvoice ? ( - totalInvoice ? ( - renderFormatRupiah(totalInvoice, "Rp.") + + {isScurve === true ? ( + +
+ {/*
Health By Schedule
+
+
On Budget
+
*/} + + Total Invoice + + {isReadyIntegrationInvoice ? ( + totalInvoice ? ( + renderFormatRupiah(totalInvoice, "Rp.") + ) : ( + "-" + ) ) : ( - "-" - ) - ) : ( - - )} - - - - Cash In - - {isReadyIntegrationInvoice ? ( - cashIn ? ( - renderFormatRupiah(cashIn, "Rp.") + + )} + + + + Cash In + + {isReadyIntegrationInvoice ? ( + cashIn ? ( + renderFormatRupiah(cashIn, "Rp.") + ) : ( + "-" + ) ) : ( - "-" - ) - ) : ( - - )} - - - - -
- -
- - Outstanding Balance - - {isReadyIntegrationInvoice ? ( - outstandingBalance ? ( - renderFormatRupiah(outstandingBalance, "Rp.") + + )} + + + + +
+ +
+ + Outstanding Balance + + {isReadyIntegrationInvoice ? ( + outstandingBalance ? ( + renderFormatRupiah(outstandingBalance, "Rp.") + ) : ( + "-" + ) ) : ( - "-" - ) - ) : ( - - )} - - -
- -
*/} + + )} + +
+
+ + ):''} +