aboutsummaryrefslogtreecommitdiff
path: root/src/modules/statuses.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2019-01-29 21:04:52 +0200
committershpuld <shp@cock.li>2019-01-29 21:04:52 +0200
commit62e9525724cfff0c3e26b8325b019e926baed1ca (patch)
tree8af3ad998448a09343181774457a08e48c330637 /src/modules/statuses.js
parent3cfbf0141f9e5c2c835699c5427d4829da412328 (diff)
Add loading indicator for notifications, make timelines indicate bottoming out when no more statuses
Diffstat (limited to 'src/modules/statuses.js')
-rw-r--r--src/modules/statuses.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js
index 04ec4dbc..56619455 100644
--- a/src/modules/statuses.js
+++ b/src/modules/statuses.js
@@ -28,6 +28,7 @@ export const defaultState = {
minId: Number.POSITIVE_INFINITY,
data: [],
idStore: {},
+ loading: false,
error: false
},
favorites: new Set(),
@@ -348,6 +349,9 @@ export const mutations = {
setError (state, { value }) {
state.error = value
},
+ setNotificationsLoading (state, { value }) {
+ state.notifications.loading = value
+ },
setNotificationsError (state, { value }) {
state.notifications.error = value
},
@@ -376,6 +380,9 @@ const statuses = {
setError ({ rootState, commit }, { value }) {
commit('setError', { value })
},
+ setNotificationsLoading ({ rootState, commit }, { value }) {
+ commit('setNotificationsLoading', { value })
+ },
setNotificationsError ({ rootState, commit }, { value }) {
commit('setNotificationsError', { value })
},