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 = { | 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 | ||||||
|   }, |   }, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue