mirror of
https://github.com/plankanban/planka.git
synced 2025-07-23 07:09:44 +02:00
feat: Toggle actions details, little redesign
This commit is contained in:
parent
82e4f73c1f
commit
34db8947b6
25 changed files with 301 additions and 81 deletions
|
@ -1,4 +1,4 @@
|
|||
const LIMIT = 10;
|
||||
const LIMIT = 50;
|
||||
|
||||
module.exports = {
|
||||
inputs: {
|
||||
|
@ -10,6 +10,10 @@ module.exports = {
|
|||
beforeId: {
|
||||
type: 'string',
|
||||
},
|
||||
withDetails: {
|
||||
type: 'boolean',
|
||||
defaultsTo: false,
|
||||
},
|
||||
},
|
||||
|
||||
async fn(inputs) {
|
||||
|
@ -23,6 +27,10 @@ module.exports = {
|
|||
};
|
||||
}
|
||||
|
||||
if (!inputs.withDetails) {
|
||||
criteria.type = Action.Types.COMMENT_CARD;
|
||||
}
|
||||
|
||||
return sails.helpers.actions.getMany(criteria, LIMIT);
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue