mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-04 01:54:33 +02:00
Add:Persist scroll position for bookshelves #196, Fix:Hide clear filter button for series and collections
This commit is contained in:
parent
5d2da97dc5
commit
61b8ca1510
2 changed files with 28 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue