@masterteam/task-schedule 0.0.20 → 0.0.21
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.
|
@@ -3672,6 +3672,16 @@ class TaskSchedule {
|
|
|
3672
3672
|
if (item.id === 'convert_to') {
|
|
3673
3673
|
item.iconCss = 'fas fa-random';
|
|
3674
3674
|
item.items = this.editTaskTypes().filter((taskType) => taskType.id !== currentType);
|
|
3675
|
+
return;
|
|
3676
|
+
}
|
|
3677
|
+
// Hide the built-in "Add > Milestone" entry from the right-click menu;
|
|
3678
|
+
// milestones are still added via the toolbar and the convert-to submenu.
|
|
3679
|
+
// Scope this strictly to the Add submenu — touching other items' lazily
|
|
3680
|
+
// populated submenus (e.g. DeleteDependency) re-renders the menu and makes
|
|
3681
|
+
// Syncfusion's own Save/Cancel hide pass flicker.
|
|
3682
|
+
if (String(item.id ?? '').endsWith('_contextMenu_Add') &&
|
|
3683
|
+
Array.isArray(item.items)) {
|
|
3684
|
+
item.items = item.items.filter((subItem) => !String(subItem?.id ?? '').endsWith('_contextMenu_Milestone'));
|
|
3675
3685
|
}
|
|
3676
3686
|
});
|
|
3677
3687
|
}
|