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

Method openTaskEditModal

src/main.ts:1337–1340  ·  view source on GitHub ↗

* Opens the task edit modal for a specific task

(task: TaskInfo, onTaskUpdated?: (task: TaskInfo) => void)

Source from the content-addressed store, hash-verified

1335 * Opens the task edit modal for a specific task
1336 */
1337 async openTaskEditModal(task: TaskInfo, onTaskUpdated?: (task: TaskInfo) => void) {
1338 // With native cache, task data is always current - no need to refetch
1339 new TaskEditModal(this.app, this, { task, onTaskUpdated }).open();
1340 }
1341
1342 /**
1343 * Opens a date/time picker modal for the given task date field.

Callers 5

buildMenuMethod · 0.80
buildActionsListMethod · 0.80
editTaskFunction · 0.80
editTaskMethod · 0.80

Calls 1

openMethod · 0.45

Tested by

no test coverage detected