add content in list, add list options
This commit is contained in:
1 parent
b2444a8118
commit
66a6400cda
5 files changed
+67
-8
No files matched your search
@@ -21,6 +21,8 @@ interface CalendarRange {
|
||||
}
|
||||
|
||||
const UNSCHEDULED_LIMIT = 20
|
||||
/** Closed issues are not worth scheduling, so the side list shows only these */
|
||||
const UNSCHEDULED_STATUSES: Issue['status'][] = ['OPEN', 'IN_PROGRESS']
|
||||
const DRAG_TYPE = 'application/x-ulitka-issue'
|
||||
|
||||
const issueStore = useIssueStore()
|
||||
@@ -118,6 +120,7 @@ async function loadUnscheduled(page = 1) {
|
||||
limit: UNSCHEDULED_LIMIT,
|
||||
text: search.value,
|
||||
projectId: currentProjectId.value,
|
||||
status: UNSCHEDULED_STATUSES,
|
||||
hasDueDate: false,
|
||||
})
|
||||
if (requestId !== unscheduledRequestId) return
|
||||
@@ -158,7 +161,7 @@ async function setDueDate(issue: Issue, date: string | null) {
|
||||
if (updated.dueDate) {
|
||||
scheduled.value.push(updated)
|
||||
if (wasUnscheduled) unscheduledTotal.value--
|
||||
} else {
|
||||
} else if (UNSCHEDULED_STATUSES.includes(updated.status)) {
|
||||
unscheduled.value.unshift(updated)
|
||||
unscheduledTotal.value++
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user