[web] Remove unused states
This commit is contained in:
parent
db6279bc88
commit
8085d0344a
|
@ -276,12 +276,6 @@ export default {
|
|||
webapi.library_stats().then(({ data }) => {
|
||||
this.$store.commit(types.UPDATE_LIBRARY_STATS, data)
|
||||
})
|
||||
webapi.library_count('media_kind is audiobook').then(({ data }) => {
|
||||
this.$store.commit(types.UPDATE_LIBRARY_AUDIOBOOKS_COUNT, data)
|
||||
})
|
||||
webapi.library_count('media_kind is podcast').then(({ data }) => {
|
||||
this.$store.commit(types.UPDATE_LIBRARY_PODCASTS_COUNT, data)
|
||||
})
|
||||
webapi.library_count('scan_kind is rss').then(({ data }) => {
|
||||
this.$store.commit(types.UPDATE_LIBRARY_RSS_COUNT, data)
|
||||
})
|
||||
|
|
|
@ -8,7 +8,6 @@ export default createStore({
|
|||
artists_sort: 1,
|
||||
artist_albums_sort: 1,
|
||||
artist_tracks_sort: 1,
|
||||
audiobooks_count: {},
|
||||
composer_tracks_sort: 1,
|
||||
config: {
|
||||
buildoptions: [],
|
||||
|
@ -27,7 +26,6 @@ export default createStore({
|
|||
updated_at: '01',
|
||||
updating: false
|
||||
},
|
||||
podcasts_count: {},
|
||||
lastfm: {},
|
||||
lyrics: {
|
||||
content: [],
|
||||
|
@ -171,12 +169,6 @@ export default createStore({
|
|||
[types.UPDATE_LIBRARY_STATS](state, libraryStats) {
|
||||
state.library = libraryStats
|
||||
},
|
||||
[types.UPDATE_LIBRARY_AUDIOBOOKS_COUNT](state, count) {
|
||||
state.audiobooks_count = count
|
||||
},
|
||||
[types.UPDATE_LIBRARY_PODCASTS_COUNT](state, count) {
|
||||
state.podcasts_count = count
|
||||
},
|
||||
[types.UPDATE_LIBRARY_RSS_COUNT](state, count) {
|
||||
state.rss_count = count
|
||||
},
|
||||
|
|
|
@ -2,8 +2,6 @@ export const UPDATE_CONFIG = 'UPDATE_CONFIG'
|
|||
export const UPDATE_SETTINGS = 'UPDATE_SETTINGS'
|
||||
export const UPDATE_SETTINGS_OPTION = 'UPDATE_SETTINGS_OPTION'
|
||||
export const UPDATE_LIBRARY_STATS = 'UPDATE_LIBRARY_STATS'
|
||||
export const UPDATE_LIBRARY_AUDIOBOOKS_COUNT = 'UPDATE_LIBRARY_AUDIOBOOKS_COUNT'
|
||||
export const UPDATE_LIBRARY_PODCASTS_COUNT = 'UPDATE_LIBRARY_PODCASTS_COUNT'
|
||||
export const UPDATE_LIBRARY_RSS_COUNT = 'UPDATE_LIBRARY_RSS_COUNT'
|
||||
export const UPDATE_OUTPUTS = 'UPDATE_OUTPUTS'
|
||||
export const UPDATE_PLAYER_STATUS = 'UPDATE_PLAYER_STATUS'
|
||||
|
|
Loading…
Reference in New Issue