gantt-task-react-powern 0.4.82 → 0.4.84
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 +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2892,6 +2892,12 @@ var Gantt = function Gantt(_ref) {
|
|
|
2892
2892
|
|
|
2893
2893
|
if (leafTasks.length > 0 && primaryPath.length === 0 && secondaryPath.length === 0) {
|
|
2894
2894
|
setHasCircularDeps(true);
|
|
2895
|
+
} else {
|
|
2896
|
+
if (hasCircularDeps && localStorage.getItem('hideCircularDepsAlert') === 'true') {
|
|
2897
|
+
localStorage.removeItem('hideCircularDepsAlert');
|
|
2898
|
+
}
|
|
2899
|
+
|
|
2900
|
+
setHasCircularDeps(false);
|
|
2895
2901
|
}
|
|
2896
2902
|
|
|
2897
2903
|
uncolorAll(tasks);
|
|
@@ -3040,6 +3046,7 @@ var Gantt = function Gantt(_ref) {
|
|
|
3040
3046
|
var alert = document.getElementById("alert-container");
|
|
3041
3047
|
|
|
3042
3048
|
if (checkbox.checked) {
|
|
3049
|
+
localStorage.setItem('hideCircularDepsAlert', 'true');
|
|
3043
3050
|
alert.style.display = "None";
|
|
3044
3051
|
}
|
|
3045
3052
|
};
|
|
@@ -3192,7 +3199,7 @@ var Gantt = function Gantt(_ref) {
|
|
|
3192
3199
|
taskLabelRenderer: taskLabelRenderer,
|
|
3193
3200
|
onMultiSelect: onMultiSelect
|
|
3194
3201
|
};
|
|
3195
|
-
return React__default.createElement("div", null, hasCircularDeps && React__default.createElement("div", {
|
|
3202
|
+
return React__default.createElement("div", null, hasCircularDeps && localStorage.getItem('hideCircularDepsAlert') !== 'true' && React__default.createElement("div", {
|
|
3196
3203
|
id: "alert-container",
|
|
3197
3204
|
className: styles$9.alertContainer + " " + styles$9.warning
|
|
3198
3205
|
}, React__default.createElement("input", {
|