feat(call_to_action): add more info button for new layout

This commit is contained in:
Elian Doran 2025-12-17 22:46:25 +02:00
parent 851169e061
commit 9872a3d522
No known key found for this signature in database
2 changed files with 9 additions and 1 deletions

View File

@ -2111,6 +2111,7 @@
"background_effects_button": "Enable background effects",
"new_layout_title": "New layout",
"new_layout_message": "Weve 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": {

View File

@ -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",