mirror of
https://github.com/zadam/trilium.git
synced 2025-11-21 16:14:23 +01:00
client/note color picker menu item: improve the integration with the tree context menu
This commit is contained in:
parent
72051c8660
commit
e6847355e7
@ -262,7 +262,13 @@ export default class TreeContextMenu implements SelectMenuItemEventListener<Tree
|
|||||||
|
|
||||||
{
|
{
|
||||||
kind: "custom",
|
kind: "custom",
|
||||||
componentFn: () => ColorPickerMenuItem({note})
|
componentFn: () => {
|
||||||
|
if (notOptionsOrHelp && selectedNotes.length === 1) {
|
||||||
|
return ColorPickerMenuItem({note});
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
return items.filter((row) => row !== null) as MenuItem<TreeCommandNames>[];
|
return items.filter((row) => row !== null) as MenuItem<TreeCommandNames>[];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user