diff --git a/edit-mode/function/ganttSettings.js b/edit-mode/function/ganttSettings.js index 54f494b..ffd0dd1 100644 --- a/edit-mode/function/ganttSettings.js +++ b/edit-mode/function/ganttSettings.js @@ -347,7 +347,7 @@ window.addEventListener("click", function (event) { // Set Baseline function setBaseline() { var box = gantt.confirm({ - text: "Set Baseline?", + text: "Set Baseline for this gantt chart?", ok: "Yes", cancel: "No", callback: async function (result) { @@ -363,9 +363,9 @@ function setBaseline() { } // Set Baseline Activity -function setBaselineActivity(activity_id) { +function setBaselineActivity(activity_id, name) { var box = gantt.confirm({ - text: "Set Baseline Activity?", + text: `Set Baseline for this activity ${name}?`, ok: "Yes", cancel: "No", callback: async function (result) { @@ -428,7 +428,7 @@ async function setBaselineActivityAPI(activity_id) { async function setBaselineAPI() { await importUpdate(); const res = await axiosInstance - .get(ACTIVITY_SET_BASELINE_URL(activity_id), HEADER) + .get(ACTIVITY_SET_BASELINE_URL, HEADER) .then(res => res) .catch((error) => error.response); console.log('set baseline res', res); diff --git a/view-mode/function/ganttSettings.js b/view-mode/function/ganttSettings.js index 3872a95..6188f82 100644 --- a/view-mode/function/ganttSettings.js +++ b/view-mode/function/ganttSettings.js @@ -384,7 +384,7 @@ window.addEventListener("click", function(event){ // Set Baseline function setBaseline() { var box = gantt.confirm({ - text: "Set Baseline?", + text: "Set Baseline for this gantt chart?", ok:"Yes", cancel:"No", callback: async function(result){