MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / toggleBlockingTasks

Method toggleBlockingTasks

src/bases/TaskListView.ts:2806–2824  ·  view source on GitHub ↗
(task: TaskInfo, target: HTMLElement)

Source from the content-addressed store, hash-verified

2804 }
2805
2806 private async toggleBlockingTasks(task: TaskInfo, target: HTMLElement): Promise<void> {
2807 try {
2808 const expanded = target.classList.toggle("task-card__blocking-toggle--expanded");
2809
2810 // Find the card element and toggle blocking tasks display
2811 const card = target.closest<HTMLElement>(".task-card");
2812 if (card) {
2813 const { toggleBlockingTasks } = await import("../ui/TaskCard");
2814 await toggleBlockingTasks(card, task, this.plugin, expanded);
2815 }
2816 } catch (error) {
2817 tasknotesLogger.error("[TaskNotes][TaskListView] Failed to toggle blocking tasks", {
2818 category: "persistence",
2819 operation: "toggle-blocking-tasks",
2820 error: error,
2821 });
2822 new Notice("Failed to toggle blocking tasks");
2823 }
2824 }
2825
2826 private arePathArraysEqual(taskNotes: TaskInfo[], previousPaths: string[]): boolean {
2827 if (taskNotes.length !== previousPaths.length) return false;

Callers 1

handleActionClickMethod · 0.95

Calls 3

toggleBlockingTasksFunction · 0.85
toggleMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected