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