mirror of
https://github.com/zadam/trilium.git
synced 2025-12-21 14:54:24 +01:00
feat(call_to_action): add more info button for new layout
This commit is contained in:
parent
851169e061
commit
9872a3d522
@ -2111,6 +2111,7 @@
|
|||||||
"background_effects_button": "Enable background effects",
|
"background_effects_button": "Enable background effects",
|
||||||
"new_layout_title": "New layout",
|
"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_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"
|
"dismiss": "Dismiss"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import appContext from "../../components/app_context";
|
||||||
import { t } from "../../services/i18n";
|
import { t } from "../../services/i18n";
|
||||||
import options from "../../services/options";
|
import options from "../../services/options";
|
||||||
import utils from "../../services/utils";
|
import utils from "../../services/utils";
|
||||||
@ -50,7 +51,13 @@ const CALL_TO_ACTIONS: CallToAction[] = [
|
|||||||
title: t("call_to_action.new_layout_title"),
|
title: t("call_to_action.new_layout_title"),
|
||||||
message: t("call_to_action.new_layout_message"),
|
message: t("call_to_action.new_layout_message"),
|
||||||
enabled: () => true,
|
enabled: () => true,
|
||||||
buttons: []
|
buttons: [
|
||||||
|
{
|
||||||
|
|
||||||
|
text: t("call_to_action.new_layout_button"),
|
||||||
|
onClick: () => appContext.tabManager.openInNewTab("_help_IjZS7iK5EXtb", "_help", true)
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "background_effects",
|
id: "background_effects",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user