From a2995ef2674f88dc2fef1bca887a5c209fb06b5c Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 8 Feb 2025 10:46:06 +0200 Subject: [PATCH] feat(mobile): add open today's journal note (closes #1129). --- src/services/hidden_subtree_launcherbar.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/services/hidden_subtree_launcherbar.ts b/src/services/hidden_subtree_launcherbar.ts index a6dfecdad..15df97fee 100644 --- a/src/services/hidden_subtree_launcherbar.ts +++ b/src/services/hidden_subtree_launcherbar.ts @@ -9,6 +9,12 @@ export default function buildLaunchBarConfig() { command: "createNoteIntoInbox", icon: "bx bx-file-blank" }, + openToday: { + title: t("hidden-subtree.open-today-journal-note-title"), + type: "launcher", + builtinWidget: "todayInJournal", + icon: "bx bx-calendar-star" + }, backInHistory: { title: t("hidden-subtree.go-to-previous-note-title"), type: "launcher", @@ -61,7 +67,7 @@ export default function buildLaunchBarConfig() { }, { id: "_lbSpacer1", title: t("hidden-subtree.spacer-title"), type: "launcher", builtinWidget: "spacer", baseSize: "50", growthFactor: "0" }, { id: "_lbBookmarks", title: t("hidden-subtree.bookmarks-title"), type: "launcher", builtinWidget: "bookmarks", icon: "bx bx-bookmark" }, - { id: "_lbToday", title: t("hidden-subtree.open-today-journal-note-title"), type: "launcher", builtinWidget: "todayInJournal", icon: "bx bx-calendar-star" }, + { id: "_lbToday", ...sharedLaunchers.openToday }, { id: "_lbSpacer2", title: t("hidden-subtree.spacer-title"), type: "launcher", builtinWidget: "spacer", baseSize: "0", growthFactor: "1" }, { id: "_lbQuickSearch", title: t("hidden-subtree.quick-search-title"), type: "launcher", builtinWidget: "quickSearch", icon: "bx bx-rectangle" }, { id: "_lbProtectedSession", title: t("hidden-subtree.protected-session-title"), type: "launcher", builtinWidget: "protectedSession", icon: "bx bx bx-shield-quarter" }, @@ -70,7 +76,8 @@ export default function buildLaunchBarConfig() { ] const mobileAvailableLaunchers: HiddenSubtreeItem[] = [ - { id: "_lbMobileNewNote", ...sharedLaunchers.newNote } + { id: "_lbMobileNewNote", ...sharedLaunchers.newNote }, + { id: "_lbMobileToday", ...sharedLaunchers.openToday } ]; const mobileVisibleLaunchers: HiddenSubtreeItem[] = [