MCPcopy
hub / github.com/callumalpass/tasknotes / showPriorityMenu

Method showPriorityMenu

src/bases/TaskListView.ts:2565–2584  ·  view source on GitHub ↗
(task: TaskInfo, event: MouseEvent)

Source from the content-addressed store, hash-verified

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({

Callers 1

handleActionClickMethod · 0.95

Calls 3

showMethod · 0.95
updateTaskPropertyMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected