Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/components/Item/ItemMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,23 @@ export function useItemMenu({

menu.addSeparator();

function addMoveToNextLaneOption(menu: Menu) {
const lanes = stateManager.state.children;
if (lanes.length <= 1) return;
if (path[0] == lanes.length - 1) return;
menu.addItem((i) => {
i.setIcon('lucide-arrow-right')
.setTitle(t('Move to next list'))
.onClick(() => {
stateManager.setState((boardData) => {
return moveEntity(boardData, path, [path[0] + 1, 0]);
});
});
});
}

addMoveToNextLaneOption(menu);

const addMoveToOptions = (menu: Menu) => {
const lanes = stateManager.state.children;
if (lanes.length <= 1) return;
Expand Down
1 change: 1 addition & 0 deletions src/lang/locale/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ const en = {
'Add label': 'Add label',
'Move to top': 'Move to top',
'Move to bottom': 'Move to bottom',
'Move to next list': 'Move to next list',
'Move to list': 'Move to list',

// components/Lane/LaneForm.tsx
Expand Down