forked from AkkomaGang/akkoma-fe
Remove useless codes
This commit is contained in:
parent
ea27483f27
commit
7c2b65e9a3
1 changed files with 1 additions and 11 deletions
|
@ -27,8 +27,7 @@ const emptyNotifications = () => ({
|
||||||
data: [],
|
data: [],
|
||||||
idStore: {},
|
idStore: {},
|
||||||
loading: false,
|
loading: false,
|
||||||
error: false,
|
error: false
|
||||||
fetcherId: null
|
|
||||||
})
|
})
|
||||||
|
|
||||||
export const defaultState = () => ({
|
export const defaultState = () => ({
|
||||||
|
@ -342,9 +341,6 @@ export const mutations = {
|
||||||
oldTimeline.visibleStatusesObject = {}
|
oldTimeline.visibleStatusesObject = {}
|
||||||
each(oldTimeline.visibleStatuses, (status) => { oldTimeline.visibleStatusesObject[status.id] = status })
|
each(oldTimeline.visibleStatuses, (status) => { oldTimeline.visibleStatusesObject[status.id] = status })
|
||||||
},
|
},
|
||||||
// setNotificationFetcher (state, { fetcherId }) {
|
|
||||||
// state.notifications.fetcherId = fetcherId
|
|
||||||
// },
|
|
||||||
resetStatuses (state) {
|
resetStatuses (state) {
|
||||||
const emptyState = defaultState()
|
const emptyState = defaultState()
|
||||||
Object.entries(emptyState).forEach(([key, value]) => {
|
Object.entries(emptyState).forEach(([key, value]) => {
|
||||||
|
@ -433,12 +429,6 @@ const statuses = {
|
||||||
setNotificationsSilence ({ rootState, commit }, { value }) {
|
setNotificationsSilence ({ rootState, commit }, { value }) {
|
||||||
commit('setNotificationsSilence', { value })
|
commit('setNotificationsSilence', { value })
|
||||||
},
|
},
|
||||||
// stopFetchingNotifications ({ rootState, commit }) {
|
|
||||||
// if (rootState.statuses.notifications.fetcherId) {
|
|
||||||
// window.clearInterval(rootState.statuses.notifications.fetcherId)
|
|
||||||
// }
|
|
||||||
// commit('setNotificationFetcher', { fetcherId: null })
|
|
||||||
// },
|
|
||||||
deleteStatus ({ rootState, commit }, status) {
|
deleteStatus ({ rootState, commit }, status) {
|
||||||
commit('setDeleted', { status })
|
commit('setDeleted', { status })
|
||||||
apiService.deleteStatus({ id: status.id, credentials: rootState.users.currentUser.credentials })
|
apiService.deleteStatus({ id: status.id, credentials: rootState.users.currentUser.credentials })
|
||||||
|
|
Loading…
Reference in a new issue