mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-12-01 20:44:12 +01: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:
1 parent
bba388aefa
commit
79f09b334c
3 files changed
+37
-1
No files matched your search
+3
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user