mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 23:29:02 +02:00
chore(call-to-action): add IDs for each call to action
This commit is contained in:
parent
1baaee582e
commit
b2db87db4e
@ -3,6 +3,7 @@ import options from "../../services/options";
|
|||||||
import { t } from "../../services/i18n";
|
import { t } from "../../services/i18n";
|
||||||
|
|
||||||
export interface CallToAction {
|
export interface CallToAction {
|
||||||
|
id: string;
|
||||||
title: string;
|
title: string;
|
||||||
message: string;
|
message: string;
|
||||||
enabled: () => boolean;
|
enabled: () => boolean;
|
||||||
@ -18,6 +19,7 @@ function isNextTheme() {
|
|||||||
|
|
||||||
const CALL_TO_ACTIONS: CallToAction[] = [
|
const CALL_TO_ACTIONS: CallToAction[] = [
|
||||||
{
|
{
|
||||||
|
id: "next_theme",
|
||||||
title: t("call_to_action.next_theme_title"),
|
title: t("call_to_action.next_theme_title"),
|
||||||
message: t("call_to_action.next_theme_message"),
|
message: t("call_to_action.next_theme_message"),
|
||||||
enabled: () => !isNextTheme(),
|
enabled: () => !isNextTheme(),
|
||||||
@ -33,6 +35,7 @@ const CALL_TO_ACTIONS: CallToAction[] = [
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
id: "background_effects",
|
||||||
title: t("call_to_action.background_effects_title"),
|
title: t("call_to_action.background_effects_title"),
|
||||||
message: t("call_to_action.background_effects_message"),
|
message: t("call_to_action.background_effects_message"),
|
||||||
enabled: () => isNextTheme() && !options.is("backgroundEffects"),
|
enabled: () => isNextTheme() && !options.is("backgroundEffects"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user