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:
advplyr 2022-08-25 17:50:55 -05:00
parent bba388aefa
commit 79f09b334c
3 changed files with 37 additions and 1 deletions

View file

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