mirror of https://github.com/TriliumNext/Notes
added today launcher
parent
5fca606730
commit
e41104208a
@ -0,0 +1,15 @@
|
||||
import NoteLauncher from "./note_launcher.js";
|
||||
import dateNotesService from "../../../services/date_notes.js";
|
||||
import appContext from "../../../components/app_context.js";
|
||||
|
||||
export default class TodayLauncher extends NoteLauncher {
|
||||
async getTargetNoteId() {
|
||||
const todayNote = await dateNotesService.getTodayNote();
|
||||
|
||||
return todayNote.noteId;
|
||||
}
|
||||
|
||||
getHoistedNoteId() {
|
||||
return appContext.tabManager.getActiveContext().hoistedNoteId;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue