mirror of
https://github.com/plankanban/planka.git
synced 2025-07-21 22:29:42 +02:00
Add project backgrounds
This commit is contained in:
parent
fb9ceb5db7
commit
2f7a244807
67 changed files with 774 additions and 210 deletions
|
@ -15,6 +15,14 @@ module.exports = {
|
|||
type: 'string',
|
||||
isNotEmptyString: true,
|
||||
},
|
||||
background: {
|
||||
type: 'json',
|
||||
custom: (value) => _.isNull(value),
|
||||
},
|
||||
backgroundImage: {
|
||||
type: 'json',
|
||||
custom: (value) => _.isNull(value),
|
||||
},
|
||||
},
|
||||
|
||||
exits: {
|
||||
|
@ -30,7 +38,7 @@ module.exports = {
|
|||
throw Errors.PROJECT_NOT_FOUND;
|
||||
}
|
||||
|
||||
const values = _.pick(inputs, ['name']);
|
||||
const values = _.pick(inputs, ['name', 'background', 'backgroundImage']);
|
||||
|
||||
project = await sails.helpers.updateProject(project, values, this.req);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue