mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 22:04:08 +02:00
Add:Persist scroll position for bookshelves #196, Fix:Hide clear filter button for series and collections
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user