Remove unused property from the invidious store (#2686)
This commit is contained in:
		
							parent
							
								
									eea76ad405
								
							
						
					
					
						commit
						9888005c91
					
				|  | @ -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 | ||||
|   }, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue