mirror of
https://github.com/zadam/trilium.git
synced 2025-12-18 13:24:25 +01:00
chore(views/board): set up context menu on the header
This commit is contained in:
parent
08678e74e6
commit
99ab9ee66b
@ -14,7 +14,7 @@ interface ShowNoteContextMenuArgs {
|
|||||||
|
|
||||||
export function setupContextMenu({ $container, api, boardView }: ShowNoteContextMenuArgs) {
|
export function setupContextMenu({ $container, api, boardView }: ShowNoteContextMenuArgs) {
|
||||||
$container.on("contextmenu", ".board-note", showNoteContextMenu);
|
$container.on("contextmenu", ".board-note", showNoteContextMenu);
|
||||||
$container.on("contextmenu", ".board-column", showColumnContextMenu);
|
$container.on("contextmenu", ".board-column h3", showColumnContextMenu);
|
||||||
|
|
||||||
function showColumnContextMenu(event: ContextMenuEvent) {
|
function showColumnContextMenu(event: ContextMenuEvent) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user