Skip to content

Build your personal knowledge base with Trilium Notes

feat(options): add more help buttons

Elian Doran3ece27876f75
diff --git a/apps/client/src/widgets/type_widgets/options/appearance_fonts.tsx b/apps/client/src/widgets/type_widgets/options/appearance_fonts.tsx
index f93e776338..ef697f5345 100644
--- a/apps/client/src/widgets/type_widgets/options/appearance_fonts.tsx
+++ b/apps/client/src/widgets/type_widgets/options/appearance_fonts.tsx
@@ -26,6 +26,7 @@ import SegmentedChoice from "../../react/SegmentedChoice";
import { renderShortcutKbds } from "../../react/shortcut_kbd";
import Slider from "../../react/Slider";
import SettingsSearch from "./components/SettingsSearch";
+import HelpButton from "../../react/HelpButton";
interface FontFamilyEntry {
value: FontFamily;
@@ -143,7 +144,8 @@ export default function Fonts() {
const [ pickerShown, setPickerShown ] = useState(false);
return (
- <Card className="appearance-fonts" heading={t("fonts.fonts")}>
+ <Card className="appearance-fonts" heading={t("fonts.fonts")}
+ actions={<HelpButton helpPage="w4rMEhJsALlA" />}>
<OptionCardSection
name="override-theme-fonts"
label={t("fonts.custom_fonts")}
diff --git a/apps/client/src/widgets/type_widgets/options/database.tsx b/apps/client/src/widgets/type_widgets/options/database.tsx
index d389e400eb..6887aa8623 100644
--- a/apps/client/src/widgets/type_widgets/options/database.tsx
+++ b/apps/client/src/widgets/type_widgets/options/database.tsx
@@ -37,6 +37,7 @@ import { showCleanupDialog } from "../space_usage/cleanup_dialog";
import DatabaseFileList from "./components/DatabaseFileList";
import OptionsPageHeader from "./components/OptionsPageHeader";
import RelatedSettings from "./components/RelatedSettings";
+import HelpButton from "../../react/HelpButton";
/**
* What can be done to the knowledge base as a whole, rather than to anything inside it: keeping the
@@ -375,6 +376,7 @@ function AnonymizationOptions() {
<Card className="database-anonymization"
heading={t("database_anonymization.title")}
description={t("database_anonymization.description")}
+ actions={<HelpButton helpPage="x59R8J8KV5Bp" />}
>
<OptionCardSection
label={t("database_anonymization.full_anonymization")}
diff --git a/apps/client/src/widgets/type_widgets/options/i18n.tsx b/apps/client/src/widgets/type_widgets/options/i18n.tsx
index 0fc756d824..fecd904fff 100644
--- a/apps/client/src/widgets/type_widgets/options/i18n.tsx
+++ b/apps/client/src/widgets/type_widgets/options/i18n.tsx
@@ -13,6 +13,7 @@ import { LocaleSelector } from "./components/LocaleSelector";
import OptionsPageHeader from "./components/OptionsPageHeader";
import RelatedSettings from "./components/RelatedSettings";
import RestartAction from "./components/RestartAction";
+import HelpButton from "../../react/HelpButton";
export default function InternationalizationOptions() {
return (
@@ -163,6 +164,7 @@ function ContentLanguages() {
<Card
heading={t("content_language.title")}
description={t("content_language.description")}
+ actions={<HelpButton helpPage="veGu4faJErEM" />}
>
<CardSection className="i18n-content-languages">
<ContentLanguagesList />