Change 403 messaging

This commit is contained in:
Wyatt Benno 2019-12-05 11:48:37 +09:00
parent 7b1d5a4f5c
commit 13fc2612ae
6 changed files with 45 additions and 6 deletions

View file

@ -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 })
},