mirror of
https://github.com/plankanban/planka.git
synced 2025-12-18 01:11:13 +03:00
Add project backgrounds
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user