|
|
|
@ -38,6 +38,7 @@ export const defaultState = () => ({
|
|
|
|
|
notifications: emptyNotifications(),
|
|
|
|
|
favorites: new Set(),
|
|
|
|
|
error: false,
|
|
|
|
|
error403: false,
|
|
|
|
|
timelines: {
|
|
|
|
|
mentions: emptyTl(),
|
|
|
|
|
public: emptyTl(),
|
|
|
|
@ -479,6 +480,9 @@ export const mutations = {
|
|
|
|
|
setError (state, { value }) {
|
|
|
|
|
state.error = value
|
|
|
|
|
},
|
|
|
|
|
set403Error (state, { value }) {
|
|
|
|
|
state.error403 = value
|
|
|
|
|
},
|
|
|
|
|
setNotificationsLoading (state, { value }) {
|
|
|
|
|
state.notifications.loading = value
|
|
|
|
|
},
|
|
|
|
@ -528,6 +532,9 @@ const statuses = {
|
|
|
|
|
setError ({ rootState, commit }, { value }) {
|
|
|
|
|
commit('setError', { value })
|
|
|
|
|
},
|
|
|
|
|
set403Error ({ rootState, commit }, { value }) {
|
|
|
|
|
commit('set403Error', { value })
|
|
|
|
|
},
|
|
|
|
|
setNotificationsLoading ({ rootState, commit }, { value }) {
|
|
|
|
|
commit('setNotificationsLoading', { value })
|
|
|
|
|
},
|
|
|
|
|