Add:Persist scroll position for bookshelves #196, Fix:Hide clear filter button for series and collections

This commit is contained in:
advplyr 2022-05-22 14:19:13 -05:00
parent 5d2da97dc5
commit 61b8ca1510
2 changed files with 28 additions and 1 deletions

View file

@ -16,7 +16,8 @@ export const state = () => ({
showReader: false,
showSideDrawer: false,
isNetworkListenerInit: false,
serverSettings: null
serverSettings: null,
lastBookshelfScrollData: {}
})
export const getters = {
@ -54,6 +55,9 @@ export const actions = {
}
export const mutations = {
setLastBookshelfScrollData(state, { scrollTop, path, name }) {
state.lastBookshelfScrollData[name] = { scrollTop, path }
},
setPlayerItem(state, playbackSession) {
state.playerIsLocal = playbackSession ? playbackSession.playMethod == this.$constants.PlayMethod.LOCAL : false