mirror of
https://github.com/zadam/trilium.git
synced 2025-12-22 07:14:24 +01:00
chore(right_pane): use menu instead of button for highlights list
This commit is contained in:
parent
dced799976
commit
a0577dc202
@ -1725,6 +1725,7 @@
|
|||||||
"title": "Highlights List",
|
"title": "Highlights List",
|
||||||
"options": "Options",
|
"options": "Options",
|
||||||
"modal_title": "Configure Highlights List",
|
"modal_title": "Configure Highlights List",
|
||||||
|
"menu_configure": "Configure highlights list...",
|
||||||
"no_highlights": "No highlights found."
|
"no_highlights": "No highlights found."
|
||||||
},
|
},
|
||||||
"quick-search": {
|
"quick-search": {
|
||||||
|
|||||||
@ -32,16 +32,13 @@ export default function HighlightsList() {
|
|||||||
<RightPanelWidget
|
<RightPanelWidget
|
||||||
id="highlights"
|
id="highlights"
|
||||||
title={t("highlights_list_2.title")}
|
title={t("highlights_list_2.title")}
|
||||||
buttons={(
|
contextMenuItems={[
|
||||||
<ActionButton
|
{
|
||||||
icon="bx bx-cog"
|
title: t("highlights_list_2.menu_configure"),
|
||||||
text={t("highlights_list_2.options")}
|
uiIcon: "bx bx-cog",
|
||||||
onClick={(e) => {
|
handler: () => setShown(true)
|
||||||
e.stopPropagation();
|
}
|
||||||
setShown(true);
|
]}
|
||||||
}}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
{noteType === "text" && isReadOnly && <ReadOnlyTextHighlightsList />}
|
{noteType === "text" && isReadOnly && <ReadOnlyTextHighlightsList />}
|
||||||
{noteType === "text" && !isReadOnly && <EditableTextHighlightsList />}
|
{noteType === "text" && !isReadOnly && <EditableTextHighlightsList />}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user