mirror of
https://github.com/plankanban/planka.git
synced 2025-12-16 01:11:06 +03:00
feat: Add ability to duplicate card (#668)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user