From 3a1074dcda9de02fe4b7e795d875881e9dc867fa Mon Sep 17 00:00:00 2001 From: Alexander Mendes Date: Fri, 13 Oct 2017 15:24:21 +0100 Subject: [PATCH] Fix loading of new tasks into presenter (re #378) --- src/pages/collection/Presenter.vue | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/src/pages/collection/Presenter.vue b/src/pages/collection/Presenter.vue index c879961f..e7a6a4d0 100644 --- a/src/pages/collection/Presenter.vue +++ b/src/pages/collection/Presenter.vue @@ -2,7 +2,7 @@
{ if (isEmpty(r.data)) { this.handleCompletion() @@ -201,7 +190,9 @@ export default { }) pybossaApi.post(`/api/taskrun`, taskrun).then(r => { this.removeTask(taskId) - this.loadTasks() + if (this.tasks.length < 10) { + this.loadNewTasks() + } if (hasParticipated === 'true') { this.$store.dispatch('NOTIFY', { msg: 'Answer saved, thank you!',