mirror of
https://github.com/zadam/trilium.git
synced 2025-11-21 16:14:23 +01:00
client: create a placeholder for a color picker menu item
This commit is contained in:
parent
e011f99161
commit
5291a6856e
@ -0,0 +1,9 @@
|
|||||||
|
import FNote from "../../entities/fnote"
|
||||||
|
|
||||||
|
export interface ColorPickerMenuItemProps {
|
||||||
|
note: FNote | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function ColorPickerMenuItem(props: ColorPickerMenuItemProps) {
|
||||||
|
return <span>Color Picker</span>
|
||||||
|
}
|
||||||
@ -1,3 +1,4 @@
|
|||||||
|
import ColorPickerMenuItem from "./custom-items/ColorPickerMenuItem.jsx";
|
||||||
import treeService from "../services/tree.js";
|
import treeService from "../services/tree.js";
|
||||||
import froca from "../services/froca.js";
|
import froca from "../services/froca.js";
|
||||||
import clipboard from "../services/clipboard.js";
|
import clipboard from "../services/clipboard.js";
|
||||||
@ -255,7 +256,12 @@ export default class TreeContextMenu implements SelectMenuItemEventListener<Tree
|
|||||||
keyboardShortcut: "searchInSubtree",
|
keyboardShortcut: "searchInSubtree",
|
||||||
uiIcon: "bx bx-search",
|
uiIcon: "bx bx-search",
|
||||||
enabled: notSearch && noSelectedNotes
|
enabled: notSearch && noSelectedNotes
|
||||||
}
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
kind: "custom",
|
||||||
|
componentFn: () => ColorPickerMenuItem({note})
|
||||||
|
},
|
||||||
];
|
];
|
||||||
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