(task: TaskInfo, event: MouseEvent)
| 2563 | } |
| 2564 | |
| 2565 | private showPriorityMenu(task: TaskInfo, event: MouseEvent): void { |
| 2566 | const menu = new PriorityContextMenu({ |
| 2567 | currentValue: task.priority, |
| 2568 | onSelect: (newPriority) => { |
| 2569 | void (async () => { |
| 2570 | try { |
| 2571 | await this.plugin.updateTaskProperty(task, "priority", newPriority); |
| 2572 | } catch (error) { |
| 2573 | tasknotesLogger.error( |
| 2574 | "[TaskNotes][TaskListView] Failed to update priority", |
| 2575 | { category: "validation", operation: "update-priority", error: error } |
| 2576 | ); |
| 2577 | new Notice("Failed to update priority"); |
| 2578 | } |
| 2579 | })(); |
| 2580 | }, |
| 2581 | plugin: this.plugin, |
| 2582 | }); |
| 2583 | menu.show(event); |
| 2584 | } |
| 2585 | |
| 2586 | private showRecurrenceMenu(task: TaskInfo, event: MouseEvent): void { |
| 2587 | const menu = new RecurrenceContextMenu({ |
no test coverage detected