Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(call_to_action): add more info button for new layout
Elian Doran9872a3d522af
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.jsonindex 19c2940445..0f1e12781d 100644--- a/apps/client/src/translations/en/translation.json+++ b/apps/client/src/translations/en/translation.json@@ -2111,6 +2111,7 @@"background_effects_button": "Enable background effects","new_layout_title": "New layout","new_layout_message": "We’ve introduced a modernized layout for Trilium. The ribbon has been removed and seamlessly integrated into the main interface, with a new status bar and expandable sections (such as promoted attributes) taking over key functions.\n\nThe new layout is enabled by default, and can be temporarily disabled via Options → Appearance.",+ "new_layout_button": "More info","dismiss": "Dismiss"},"settings": {diff --git a/apps/client/src/widgets/dialogs/call_to_action_definitions.ts b/apps/client/src/widgets/dialogs/call_to_action_definitions.tsindex 056672b169..d783b1dbba 100644--- a/apps/client/src/widgets/dialogs/call_to_action_definitions.ts+++ b/apps/client/src/widgets/dialogs/call_to_action_definitions.ts@@ -1,3 +1,4 @@+import appContext from "../../components/app_context";import { t } from "../../services/i18n";import options from "../../services/options";import utils from "../../services/utils";@@ -50,7 +51,13 @@ const CALL_TO_ACTIONS: CallToAction[] = [title: t("call_to_action.new_layout_title"),message: t("call_to_action.new_layout_message"),enabled: () => true,- buttons: []+ buttons: [+ {++ text: t("call_to_action.new_layout_button"),+ onClick: () => appContext.tabManager.openInNewTab("_help_IjZS7iK5EXtb", "_help", true)+ }+ ]},{id: "background_effects",