mirror of
https://github.com/wekan/wekan.git
synced 2026-01-23 01:36:09 +01:00
Add checklist-item at top
This commit is contained in:
parent
6fead14c11
commit
23595674cf
3 changed files with 22 additions and 1 deletions
|
|
@ -91,6 +91,11 @@ Checklists.helpers({
|
|||
{ sort: ['sort'] },
|
||||
);
|
||||
},
|
||||
firstItem() {
|
||||
const allItems = this.items().fetch();
|
||||
const ret = _.first(allItems);
|
||||
return ret;
|
||||
},
|
||||
lastItem() {
|
||||
const allItems = this.items().fetch();
|
||||
const ret = allItems[allItems.length - 1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue