diff options
Diffstat (limited to 'src/views/Timeline.vue')
-rw-r--r-- | src/views/Timeline.vue | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/views/Timeline.vue b/src/views/Timeline.vue index 60dd52e4..23448bac 100644 --- a/src/views/Timeline.vue +++ b/src/views/Timeline.vue @@ -244,7 +244,17 @@ export default { infiniteHandler($state) { this.$store.dispatch('fetchTimeline', { account: this.currentUser.uid - }).then((response) => { response.length > 0 ? $state.loaded() : $state.complete() }); + }).then((response) => { + if (response.status = -1) { + OC.Notification.showTemporary('Failed to load more timeline entries'); + console.error('Failed to load more timeline entries', response); + $state.complete(); + return; + } + response.results.length > 0 ? $state.loaded() : $state.complete() + }).catch((error) => { + + }); }, } } |