gantt-task-react-powern 0.4.94 → 0.4.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -5
package/dist/index.js
CHANGED
|
@@ -2960,8 +2960,8 @@ var Gantt = function Gantt(_ref) {
|
|
|
2960
2960
|
if (leafTasks.length > 0 && primaryPath.length === 0 && secondaryPath.length === 0) {
|
|
2961
2961
|
setHasCircularDeps(true);
|
|
2962
2962
|
} else {
|
|
2963
|
-
if (hasCircularDeps && localStorage.getItem(
|
|
2964
|
-
localStorage.removeItem(
|
|
2963
|
+
if (hasCircularDeps && localStorage.getItem("hideCircularDepsAlert") === "true") {
|
|
2964
|
+
localStorage.removeItem("hideCircularDepsAlert");
|
|
2965
2965
|
}
|
|
2966
2966
|
|
|
2967
2967
|
setHasCircularDeps(false);
|
|
@@ -3113,7 +3113,7 @@ var Gantt = function Gantt(_ref) {
|
|
|
3113
3113
|
var alert = document.getElementById("alert-container");
|
|
3114
3114
|
|
|
3115
3115
|
if (checkbox.checked) {
|
|
3116
|
-
localStorage.setItem(
|
|
3116
|
+
localStorage.setItem("hideCircularDepsAlert", "true");
|
|
3117
3117
|
alert.style.display = "None";
|
|
3118
3118
|
}
|
|
3119
3119
|
};
|
|
@@ -3266,7 +3266,7 @@ var Gantt = function Gantt(_ref) {
|
|
|
3266
3266
|
taskLabelRenderer: taskLabelRenderer,
|
|
3267
3267
|
onMultiSelect: onMultiSelect
|
|
3268
3268
|
};
|
|
3269
|
-
return React__default.createElement("div", null, hasCircularDeps && localStorage.getItem(
|
|
3269
|
+
return React__default.createElement("div", null, hasCircularDeps && localStorage.getItem("hideCircularDepsAlert") !== "true" && React__default.createElement("div", {
|
|
3270
3270
|
id: "alert-container",
|
|
3271
3271
|
className: styles$9.alertContainer + " " + styles$9.warning
|
|
3272
3272
|
}, React__default.createElement("input", {
|
|
@@ -3415,6 +3415,7 @@ function getCriticalPaths(leafTasks) {
|
|
|
3415
3415
|
secondaryLeaf = taskMap[secondaryLeaf].next;
|
|
3416
3416
|
}
|
|
3417
3417
|
|
|
3418
|
+
console.debug([primaryPath, secondaryPath]);
|
|
3418
3419
|
return [primaryPath, secondaryPath];
|
|
3419
3420
|
}
|
|
3420
3421
|
function computeCriticalPath(taskID, taskMap) {
|