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