[web] Remove unused states

This commit is contained in:
Alain Nussbaumer 2023-12-14 09:32:46 +01:00
parent db6279bc88
commit 8085d0344a
3 changed files with 0 additions and 16 deletions

View File

@ -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)
})

View File

@ -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
},

View File

@ -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'