mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-13 15:34:50 +02:00
Add:Book library sort by published year, Fix:Check and set sort/filter when changing library to different media type
This commit is contained in:
parent
bba388aefa
commit
79f09b334c
3 changed files with 37 additions and 1 deletions
|
@ -22,7 +22,7 @@ export const getters = {
|
|||
}
|
||||
|
||||
export const actions = {
|
||||
fetch({ state, commit, rootState }, libraryId) {
|
||||
fetch({ state, commit, dispatch, rootState }, libraryId) {
|
||||
if (!rootState.user || !rootState.user.user) {
|
||||
console.error('libraries/fetch - User not set')
|
||||
return false
|
||||
|
@ -35,6 +35,8 @@ export const actions = {
|
|||
var filterData = data.filterdata
|
||||
var issues = data.issues || 0
|
||||
|
||||
dispatch('user/checkUpdateLibrarySortFilter', library.mediaType, { root: true })
|
||||
|
||||
commit('addUpdate', library)
|
||||
commit('setLibraryIssues', issues)
|
||||
commit('setLibraryFilterData', filterData)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue