Add loading indicator for notifications, make timelines indicate bottoming out when no more statuses

This commit is contained in:
shpuld 2019-01-29 21:04:52 +02:00
parent 3cfbf0141f
commit 62e9525724
9 changed files with 53 additions and 10 deletions

View file

@ -24,6 +24,7 @@ const fetchAndUpdate = ({store, credentials, older = false}) => {
return apiService.fetchTimeline(args)
.then((notifications) => {
update({store, notifications, older})
return notifications
}, () => store.dispatch('setNotificationsError', { value: true }))
.catch(() => store.dispatch('setNotificationsError', { value: true }))
}