diff options
Diffstat (limited to 'client/components')
-rw-r--r-- | client/components/activities/activities.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/client/components/activities/activities.js b/client/components/activities/activities.js index 23ab70ed..edfaab2a 100644 --- a/client/components/activities/activities.js +++ b/client/components/activities/activities.js @@ -7,7 +7,7 @@ BlazeComponent.extendComponent({ // XXX Should we use ReactiveNumber? this.page = new ReactiveVar(1); this.loadNextPageLocked = false; - const sidebar = this.parentComponent(); // XXX for some reason not working + const sidebar = Sidebar; sidebar.callFirstWith(null, 'resetNextPeak'); this.autorun(() => { let mode = this.data().mode; @@ -43,16 +43,15 @@ BlazeComponent.extendComponent({ }); }); }, -}).register('activities'); - -BlazeComponent.extendComponent({ loadNextPage() { if (this.loadNextPageLocked === false) { this.page.set(this.page.get() + 1); this.loadNextPageLocked = true; } }, +}).register('activities'); +BlazeComponent.extendComponent({ checkItem() { const checkItemId = this.currentData().activity.checklistItemId; const checkItem = ChecklistItems.findOne({ _id: checkItemId }); |