mirror of
https://github.com/plankanban/planka.git
synced 2025-12-17 17:23:25 +03:00
feat: Colorize due date and make it toggleable (#845)
This commit is contained in:
committed by
GitHub
parent
f84166406f
commit
c594e8bd71
@@ -57,6 +57,9 @@ module.exports = {
|
||||
type: 'string',
|
||||
custom: dueDateValidator,
|
||||
},
|
||||
dueCompleted: {
|
||||
type: 'boolean',
|
||||
},
|
||||
stopwatch: {
|
||||
type: 'json',
|
||||
custom: stopwatchValidator,
|
||||
@@ -95,7 +98,14 @@ module.exports = {
|
||||
throw Errors.NOT_ENOUGH_RIGHTS;
|
||||
}
|
||||
|
||||
const values = _.pick(inputs, ['position', 'name', 'description', 'dueDate', 'stopwatch']);
|
||||
const values = _.pick(inputs, [
|
||||
'position',
|
||||
'name',
|
||||
'description',
|
||||
'dueDate',
|
||||
'dueCompleted',
|
||||
'stopwatch',
|
||||
]);
|
||||
|
||||
const card = await sails.helpers.cards.createOne
|
||||
.with({
|
||||
|
||||
Reference in New Issue
Block a user