From 83d2fe9da0416614b3151d1e99bc005622a9c380 Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Wed, 31 May 2023 11:06:58 +0700 Subject: [PATCH] Adding dashboard project button --- edit-mode/function/ganttSettings.js | 5 +++++ edit-mode/index.html | 3 +++ 2 files changed, 8 insertions(+) diff --git a/edit-mode/function/ganttSettings.js b/edit-mode/function/ganttSettings.js index 98fade3..4198331 100644 --- a/edit-mode/function/ganttSettings.js +++ b/edit-mode/function/ganttSettings.js @@ -6,6 +6,7 @@ const VERSION_GANTT_EDIT_URL = `${base_url}version-gantt/edit/${ganttId}`; const VERSION_GANTT_UPDATE_URL = `${base_url}version-gantt/update/${ganttId}`; const ACTIVITY_SET_BASELINE_URL = `${base_url}project/set-baseline/${ganttId}`; const ACTIVITY_SYNCHRONIZE_REPORT_URL = `${base_url}project/synchronize-report/${ganttId}`; +let projectId = getUrlParameter("proyek_id"); var toggleTasks = "Collapse"; var isBaselineSet = false; var daysObj = [ @@ -130,6 +131,10 @@ $(document).ready(function() { toggleCollapseTasks(); }); + $("#dashboard-project").on('click', function(event) { + window.location.href = `http://localhost:3000/#/dashboard-project/${projectId}/${ganttId}`; + }); + $("#gantt-baseline").on('click', function(event) { setBaseline(); }); diff --git a/edit-mode/index.html b/edit-mode/index.html index b0139ee..de96246 100644 --- a/edit-mode/index.html +++ b/edit-mode/index.html @@ -84,6 +84,9 @@ | + + | |