chore(read-only-bar): use in-app help

This commit is contained in:
Elian Doran 2025-11-29 19:37:38 +02:00
parent 1346ffb77e
commit f325930f68
No known key found for this signature in database
2 changed files with 6 additions and 10 deletions

View File

@ -1647,7 +1647,6 @@
"read-only-info": { "read-only-info": {
"read-only-note": "Currently viewing a read-only note.", "read-only-note": "Currently viewing a read-only note.",
"auto-read-only-note": "This note is shown in a read-only mode for faster loading.", "auto-read-only-note": "This note is shown in a read-only mode for faster loading.",
"auto-read-only-learn-more": "Learn more",
"edit-note": "Edit note" "edit-note": "Edit note"
}, },
"note_types": { "note_types": {

View File

@ -3,6 +3,7 @@ import { t } from "../services/i18n";
import { useIsNoteReadOnly, useNoteContext, useTriliumEvent } from "./react/hooks" import { useIsNoteReadOnly, useNoteContext, useTriliumEvent } from "./react/hooks"
import Button from "./react/Button"; import Button from "./react/Button";
import InfoBar from "./react/InfoBar"; import InfoBar from "./react/InfoBar";
import HelpButton from "./react/HelpButton";
export default function ReadOnlyNoteInfoBar(props: {}) { export default function ReadOnlyNoteInfoBar(props: {}) {
const {note, noteContext} = useNoteContext(); const {note, noteContext} = useNoteContext();
@ -19,12 +20,8 @@ export default function ReadOnlyNoteInfoBar(props: {}) {
) : ( ) : (
<div> <div>
{t("read-only-info.auto-read-only-note")} {t("read-only-info.auto-read-only-note")}
&nbsp; {" "}
<a class="tn-link" <HelpButton helpPage="CoFPLs3dRlXc" />
href="https://docs.triliumnotes.org/user-guide/concepts/notes/read-only-notes#automatic-read-only-mode">
{t("read-only-info.auto-read-only-learn-more")}
</a>
</div> </div>
)} )}