mirror of
https://github.com/plankanban/planka.git
synced 2025-07-22 06:39:44 +02:00
feat: add option to edit the color of a list
This commit is contained in:
parent
b0e9ed6162
commit
be58e5b0bd
18 changed files with 317 additions and 169 deletions
|
@ -21,6 +21,10 @@ module.exports = {
|
|||
type: 'string',
|
||||
isNotEmptyString: true,
|
||||
},
|
||||
color: {
|
||||
type: 'string',
|
||||
allowNull: true,
|
||||
},
|
||||
},
|
||||
|
||||
exits: {
|
||||
|
@ -55,7 +59,7 @@ module.exports = {
|
|||
throw Errors.NOT_ENOUGH_RIGHTS;
|
||||
}
|
||||
|
||||
const values = _.pick(inputs, ['position', 'name']);
|
||||
const values = _.pick(inputs, ['position', 'name', 'color']);
|
||||
|
||||
list = await sails.helpers.lists.updateOne.with({
|
||||
values,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue