mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 05:09:43 +02:00
feat: Add ability to duplicate card (#668)
This commit is contained in:
parent
3091ad3121
commit
408ad9ff81
21 changed files with 505 additions and 6 deletions
|
@ -1,3 +1,5 @@
|
|||
const POSITION_GAP = 65535; // TODO: move to config
|
||||
|
||||
module.exports = {
|
||||
inputs: {
|
||||
user: {
|
||||
|
@ -124,7 +126,7 @@ module.exports = {
|
|||
getUsedTrelloLabels().map(async (trelloLabel, index) => {
|
||||
const plankaLabel = await Label.create({
|
||||
boardId: inputs.board.id,
|
||||
position: 65535 * (index + 1), // TODO: move to config
|
||||
position: POSITION_GAP * (index + 1),
|
||||
name: trelloLabel.name || null,
|
||||
color: getPlankaLabelColor(trelloLabel.color),
|
||||
}).fetch();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue