aboutsummaryrefslogtreecommitdiff
path: root/src/modules/statuses.js
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2019-01-30 17:49:27 +0000
committerlambda <pleromagit@rogerbraun.net>2019-01-30 17:49:27 +0000
commit1717e700469cb6331e2905c7af0d384cf78a1188 (patch)
tree8bb0b6f4fa6c8b81c697abc3fb707e4750f66004 /src/modules/statuses.js
parent0bd77149a06bcd7e0a904d0f5c2e2691996ff898 (diff)
parent7666d50d8a9eb2ef8b5a61a1689b7358ae7d93ea (diff)
Merge branch 'feat/dont-show-load-more-when-bottomed-out' into 'develop'
fix #292 dont show "load more" when bottomed out Closes #292 See merge request pleroma/pleroma-fe!496
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 })
},