Update Timeline.vue component, fix infinite pagination bug

This commit is contained in:
Daniel Supernault 2019-09-05 19:13:53 -06:00
parent 353f14acfa
commit 130ef34a41
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 4 additions and 1 deletions

View File

@ -229,7 +229,7 @@
<div class="card-body">
<infinite-loading @infinite="infiniteTimeline" :distance="800">
<div slot="no-more" class="font-weight-bold">No more posts to load</div>
<div slot="no-results" class="font-weight-bold">No posts found</div>
<div slot="no-results" class="font-weight-bold">No more posts to load</div>
</infinite-loading>
</div>
</div>
@ -725,6 +725,9 @@
} else {
$state.complete();
}
}).catch(err => {
this.loading = false;
$state.complete();
});
},