Show all sprints in task detail dialog (not filtered by project)
This commit is contained in:
parent
226e446f5f
commit
5bcb1a6468
@ -482,7 +482,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"lastUpdated": 1771551566326,
|
||||
"lastUpdated": 1771551794092,
|
||||
"sprints": [
|
||||
{
|
||||
"name": "Sprint 1",
|
||||
|
||||
@ -615,8 +615,10 @@ export default function Home() {
|
||||
className="w-full mt-2 px-3 py-2 bg-slate-800 border border-slate-700 rounded-lg text-white focus:outline-none focus:border-blue-500"
|
||||
>
|
||||
<option value="">No Sprint</option>
|
||||
{sprints.filter(s => s.projectId === selectedProjectId).map((sprint) => (
|
||||
<option key={sprint.id} value={sprint.id}>{sprint.name}</option>
|
||||
{sprints.sort((a, b) => new Date(a.startDate).getTime() - new Date(b.startDate).getTime()).map((sprint) => (
|
||||
<option key={sprint.id} value={sprint.id}>
|
||||
{sprint.name} ({new Date(sprint.startDate).toLocaleDateString()})
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user