mirror of
https://github.com/plankanban/planka.git
synced 2025-12-21 17:25:39 +03:00
feat: Restore toggleable due dates (#1332)
This commit is contained in:
@@ -25,6 +25,14 @@ module.exports = {
|
||||
async fn(inputs) {
|
||||
const { values } = inputs;
|
||||
|
||||
if (values.dueDate) {
|
||||
if (_.isNil(values.isDueCompleted)) {
|
||||
values.isDueCompleted = false;
|
||||
}
|
||||
} else {
|
||||
delete values.isDueCompleted;
|
||||
}
|
||||
|
||||
if (sails.helpers.lists.isFinite(values.list)) {
|
||||
if (_.isUndefined(values.position)) {
|
||||
throw 'positionMustBeInValues';
|
||||
|
||||
Reference in New Issue
Block a user