* Determine the date to use when completing a recurring task from Bases. * Prefers the task's scheduled (or due) date to avoid marking the wrong instance.
(task: TaskInfo)
| 2554 | * Prefers the task's scheduled (or due) date to avoid marking the wrong instance. |
| 2555 | */ |
| 2556 | private getTaskActionDate(task: TaskInfo): Date { |
| 2557 | const dateStr = getDatePart(task.scheduled || task.due || ""); |
| 2558 | if (dateStr) { |
| 2559 | return parseDateToUTC(dateStr); |
| 2560 | } |
| 2561 | |
| 2562 | return this.currentTargetDate; |
| 2563 | } |
| 2564 | |
| 2565 | private showPriorityMenu(task: TaskInfo, event: MouseEvent): void { |
| 2566 | const menu = new PriorityContextMenu({ |
no test coverage detected