update sort on roadmap, autosave epic/theme edition
This commit is contained in:
1 parent
6b7a4e452d
commit
f65874638f
1 file changed
+9
@@ -893,6 +893,15 @@ function renderRoadmap() {
|
||||
name,
|
||||
tickets: sortTicketsByDueDate(grouped.get(name))
|
||||
}));
|
||||
if (currentGanttMode === 'epic') {
|
||||
roadmapGroups.sort((first, second) => {
|
||||
const firstDate = Date.parse(first.tickets[0].dueDate);
|
||||
const secondDate = Date.parse(second.tickets[0].dueDate);
|
||||
const firstOrder = Number.isNaN(firstDate) ? Infinity : firstDate;
|
||||
const secondOrder = Number.isNaN(secondDate) ? Infinity : secondDate;
|
||||
return firstOrder - secondOrder || first.name.localeCompare(second.name);
|
||||
});
|
||||
}
|
||||
|
||||
let html = `<div class="gantt-container ${isGanttExpanded ? 'expanded' : ''}"><div class="gantt-canvas" style="width: ${leftWidth + (timeScale.length * colWidth)}px;">`;
|
||||
|
||||
|
||||
Reference in new issue
Block a user