mirror of
https://github.com/zadam/trilium.git
synced 2025-11-30 04:24:24 +01:00
chore(read-only-bar): use in-app help
This commit is contained in:
parent
1346ffb77e
commit
f325930f68
@ -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": {
|
||||||
|
|||||||
@ -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")}
|
||||||
|
{" "}
|
||||||
<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>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user