mirror of
https://github.com/plankanban/planka.git
synced 2025-07-20 13:49:43 +02:00
parent
d627a19935
commit
aa69bb8d1e
33 changed files with 370 additions and 104 deletions
|
@ -14,6 +14,9 @@ module.exports = {
|
|||
regex: /^[0-9]+$/,
|
||||
required: true,
|
||||
},
|
||||
position: {
|
||||
type: 'number',
|
||||
},
|
||||
name: {
|
||||
type: 'string',
|
||||
isNotEmptyString: true,
|
||||
|
@ -22,7 +25,6 @@ module.exports = {
|
|||
color: {
|
||||
type: 'string',
|
||||
isIn: Label.COLORS,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
|
@ -55,7 +57,7 @@ module.exports = {
|
|||
throw Errors.NOT_ENOUGH_RIGHTS;
|
||||
}
|
||||
|
||||
const values = _.pick(inputs, ['name', 'color']);
|
||||
const values = _.pick(inputs, ['position', 'name', 'color']);
|
||||
|
||||
label = await sails.helpers.labels.updateOne.with({
|
||||
values,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue