mirror of
https://github.com/zadam/trilium.git
synced 2025-10-31 19:49:01 +01:00
chore(views/board): disable move to for the current column
This commit is contained in:
parent
4146192b6d
commit
d60b855f74
@ -29,9 +29,10 @@ export function showNoteContextMenu({ $container, api }: ShowNoteContextMenuArgs
|
||||
{
|
||||
title: t("board_view.move-to"),
|
||||
uiIcon: "bx bx-transfer",
|
||||
items: api.columns.map(column => ({
|
||||
title: column,
|
||||
handler: () => api.changeColumn(noteId, column)
|
||||
items: api.columns.map(columnToMoveTo => ({
|
||||
title: columnToMoveTo,
|
||||
enabled: columnToMoveTo !== column,
|
||||
handler: () => api.changeColumn(noteId, columnToMoveTo)
|
||||
}))
|
||||
},
|
||||
{ title: "----" },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user