mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-11-11 20:54:04 +08:00
16 lines
471 B
JavaScript
16 lines
471 B
JavaScript
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;
|
|
}
|
|
}
|