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",
|
||||
"options": "Options",
|
||||
"modal_title": "Configure Highlights List",
|
||||
"menu_configure": "Configure highlights list...",
|
||||
"no_highlights": "No highlights found."
|
||||
},
|
||||
"quick-search": {
|
||||
|
||||
@ -32,16 +32,13 @@ export default function HighlightsList() {
|
||||
<RightPanelWidget
|
||||
id="highlights"
|
||||
title={t("highlights_list_2.title")}
|
||||
buttons={(
|
||||
<ActionButton
|
||||
icon="bx bx-cog"
|
||||
text={t("highlights_list_2.options")}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
setShown(true);
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
contextMenuItems={[
|
||||
{
|
||||
title: t("highlights_list_2.menu_configure"),
|
||||
uiIcon: "bx bx-cog",
|
||||
handler: () => setShown(true)
|
||||
}
|
||||
]}
|
||||
>
|
||||
{noteType === "text" && isReadOnly && <ReadOnlyTextHighlightsList />}
|
||||
{noteType === "text" && !isReadOnly && <EditableTextHighlightsList />}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user