1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-24 07:39:44 +02:00

feat: Add ability to hide completed tasks (#1210)

This commit is contained in:
Symon Baikov 2025-07-21 19:33:02 +03:00 committed by GitHub
parent fc9c94b3b6
commit d8fbf2f909
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 158 additions and 55 deletions

View file

@ -33,6 +33,9 @@ module.exports = {
showOnFrontOfCard: {
type: 'boolean',
},
hideCompletedTasks: {
type: 'boolean',
},
},
exits: {
@ -64,7 +67,7 @@ module.exports = {
throw Errors.NOT_ENOUGH_RIGHTS;
}
const values = _.pick(inputs, ['position', 'name', 'showOnFrontOfCard']);
const values = _.pick(inputs, ['position', 'name', 'showOnFrontOfCard', 'hideCompletedTasks']);
const taskList = await sails.helpers.taskLists.createOne.with({
project,

View file

@ -32,6 +32,9 @@ module.exports = {
showOnFrontOfCard: {
type: 'boolean',
},
hideCompletedTasks: {
type: 'boolean',
},
},
exits: {
@ -66,7 +69,7 @@ module.exports = {
throw Errors.NOT_ENOUGH_RIGHTS;
}
const values = _.pick(inputs, ['position', 'name', 'showOnFrontOfCard']);
const values = _.pick(inputs, ['position', 'name', 'showOnFrontOfCard', 'hideCompletedTasks']);
taskList = await sails.helpers.taskLists.updateOne.with({
values,