Method
constructor
(
app: App,
plugin: TaskNotesPlugin,
task: TaskInfo,
onSave: (timeEntries: TimeEntry[]) => void
)
Source from the content-addressed store, hash-verified
| 18 | private descriptionEditors: EmbeddableMarkdownEditor[] = []; |
| 19 | |
| 20 | constructor( |
| 21 | app: App, |
| 22 | plugin: TaskNotesPlugin, |
| 23 | task: TaskInfo, |
| 24 | onSave: (timeEntries: TimeEntry[]) => void |
| 25 | ) { |
| 26 | super(app); |
| 27 | this.plugin = plugin; |
| 28 | this.task = task; |
| 29 | // Create a working copy of time entries |
| 30 | this.timeEntries = JSON.parse(JSON.stringify(task.timeEntries || [])); |
| 31 | this.onSave = onSave; |
| 32 | this.translate = plugin.i18n.translate.bind(plugin.i18n); |
| 33 | } |
| 34 | |
| 35 | onOpen() { |
| 36 | const { contentEl } = this; |
Callers
nothing calls this directly
Tested by
no test coverage detected