diff options
| author | shpuld <shp@cock.li> | 2019-01-29 21:04:52 +0200 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2019-01-29 21:04:52 +0200 |
| commit | 62e9525724cfff0c3e26b8325b019e926baed1ca (patch) | |
| tree | 8af3ad998448a09343181774457a08e48c330637 /src/services/notifications_fetcher | |
| parent | 3cfbf0141f9e5c2c835699c5427d4829da412328 (diff) | |
Add loading indicator for notifications, make timelines indicate bottoming out when no more statuses
Diffstat (limited to 'src/services/notifications_fetcher')
| -rw-r--r-- | src/services/notifications_fetcher/notifications_fetcher.service.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/services/notifications_fetcher/notifications_fetcher.service.js b/src/services/notifications_fetcher/notifications_fetcher.service.js index 1480cded..b69ec643 100644 --- a/src/services/notifications_fetcher/notifications_fetcher.service.js +++ b/src/services/notifications_fetcher/notifications_fetcher.service.js @@ -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 })) } |
