Merge pull request #1938 from cosandr/fix-304

Remember sort & filter options for podcast episodes
This commit is contained in:
advplyr
2026-08-02 17:49:02 -05:00
committed by GitHub
2 changed files with 28 additions and 8 deletions
+5 -2
View File
@@ -12,7 +12,10 @@ export const state = () => ({
mobileFilterBy: 'all',
playbackRate: 1,
collapseSeries: false,
collapseBookSeries: false
collapseBookSeries: false,
podcastEpisodesOrderBy: 'publishedAt',
podcastEpisodesOrderDesc: null,
podcastEpisodesFilterBy: 'incomplete'
}
})
@@ -45,7 +48,7 @@ export const getters = {
return state.user.bookmarks.filter((bm) => bm.libraryItemId === libraryItemId)
},
getUserSetting: (state) => (key) => {
return state.settings?.[key] || null
return state.settings?.[key] ?? null
},
getUserCanUpdate: (state) => {
return !!state.user?.permissions?.update