(message: string, taskPath: string)
| 411 | } |
| 412 | |
| 413 | private showInAppNotice(message: string, taskPath: string): void { |
| 414 | const notice = showNotice(message, 0); // 0 = persistent until clicked |
| 415 | const noticeEl = (notice as unknown as { noticeEl: HTMLElement }).noticeEl; |
| 416 | |
| 417 | // Add click handler to open the task |
| 418 | noticeEl.addEventListener("click", () => { |
| 419 | void this.plugin.app.workspace.openLinkText(taskPath, "", false); |
| 420 | notice.hide(); |
| 421 | }); |
| 422 | |
| 423 | // Add styling to make it clickable |
| 424 | noticeEl.classList.remove( |
| 425 | "tn-static-cursor-grab-dad79857", |
| 426 | "tn-static-cursor-pointer-2723efcc" |
| 427 | ); |
| 428 | noticeEl.classList.add("tn-static-cursor-pointer-3b6a3a65"); |
| 429 | } |
| 430 | |
| 431 | private generateDefaultMessage(task: TaskInfo, reminder: Reminder): string { |
| 432 | if (reminder.type === "absolute") { |
no test coverage detected