Add checklist-item at top

This commit is contained in:
Martin Filser 2022-05-15 16:50:32 +02:00
parent 6fead14c11
commit 23595674cf
3 changed files with 22 additions and 1 deletions

View file

@ -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];