1
0
Fork 0
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:
Maksim Eltyshev 2020-05-26 00:46:04 +05:00
parent fb9ceb5db7
commit 2f7a244807
67 changed files with 774 additions and 210 deletions

View file

@ -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);