mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 13:19:44 +02:00
Prepare for collection board type, refactoring, update dependencies
This commit is contained in:
parent
402645bc99
commit
30ed77af59
190 changed files with 2144 additions and 1817 deletions
|
@ -17,14 +17,26 @@ module.exports = {
|
|||
throw 'pathNotFound';
|
||||
}
|
||||
|
||||
const path = await sails.helpers
|
||||
.getListToProjectPath(card.listId)
|
||||
.intercept('pathNotFound', (nodes) => ({
|
||||
pathNotFound: {
|
||||
card,
|
||||
...nodes,
|
||||
},
|
||||
}));
|
||||
let path;
|
||||
if (card.listId) {
|
||||
path = await sails.helpers
|
||||
.getListToProjectPath(card.listId)
|
||||
.intercept('pathNotFound', (nodes) => ({
|
||||
pathNotFound: {
|
||||
card,
|
||||
...nodes,
|
||||
},
|
||||
}));
|
||||
} else {
|
||||
path = await sails.helpers
|
||||
.getBoardToProjectPath(card.boardId)
|
||||
.intercept('pathNotFound', (nodes) => ({
|
||||
pathNotFound: {
|
||||
card,
|
||||
...nodes,
|
||||
},
|
||||
}));
|
||||
}
|
||||
|
||||
return exits.success({
|
||||
card,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue