Remove unused property from the invidious store (#2686)

This commit is contained in:
absidue 2022-10-08 05:09:08 +02:00 committed by GitHub
parent eea76ad405
commit 9888005c91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 14 deletions

View File

@ -2,15 +2,10 @@ import fs from 'fs'
const state = { const state = {
currentInvidiousInstance: '', currentInvidiousInstance: '',
invidiousInstancesList: null, invidiousInstancesList: null
isGetChannelInfoRunning: false
} }
const getters = { const getters = {
getIsGetChannelInfoRunning(state) {
return state.isGetChannelInfoRunning
},
getCurrentInvidiousInstance(state) { getCurrentInvidiousInstance(state) {
return state.currentInvidiousInstance return state.currentInvidiousInstance
}, },
@ -88,8 +83,6 @@ const actions = {
invidiousGetChannelInfo({ commit, dispatch }, channelId) { invidiousGetChannelInfo({ commit, dispatch }, channelId) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
commit('toggleIsGetChannelInfoRunning')
const payload = { const payload = {
resource: 'channels', resource: 'channels',
id: channelId, id: channelId,
@ -100,7 +93,6 @@ const actions = {
resolve(response) resolve(response)
}).catch((xhr) => { }).catch((xhr) => {
console.error(xhr) console.error(xhr)
commit('toggleIsGetChannelInfoRunning')
reject(xhr) reject(xhr)
}) })
}) })
@ -112,7 +104,6 @@ const actions = {
resolve(response) resolve(response)
}).catch((xhr) => { }).catch((xhr) => {
console.error(xhr) console.error(xhr)
commit('toggleIsGetChannelInfoRunning')
reject(xhr) reject(xhr)
}) })
}) })
@ -137,10 +128,6 @@ const actions = {
} }
const mutations = { const mutations = {
toggleIsGetChannelInfoRunning(state) {
state.isGetChannelInfoRunning = !state.isGetChannelInfoRunning
},
setCurrentInvidiousInstance(state, value) { setCurrentInvidiousInstance(state, value) {
state.currentInvidiousInstance = value state.currentInvidiousInstance = value
}, },