|
|
|
@ -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 <b>${name}</b>?`, |
|
|
|
|
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); |
|
|
|
|