Add: store for filtered podcast episodes

This commit is contained in:
Nicholas Wallace 2025-02-22 21:50:09 -07:00
parent 19a65dba98
commit 706b2d7d72
2 changed files with 14 additions and 0 deletions

View file

@ -25,6 +25,7 @@ export const state = () => ({
previousPath: '/',
bookshelfBookIds: [],
episodeTableEpisodeIds: [],
sortedEpisodeIds: [],
openModal: null,
innerModalOpen: false,
lastBookshelfScrollData: {},
@ -61,6 +62,9 @@ export const getters = {
getHomeBookshelfView: (state) => {
if (!state.serverSettings || isNaN(state.serverSettings.homeBookshelfView)) return Constants.BookshelfView.STANDARD
return state.serverSettings.homeBookshelfView
},
getSortedEpisodeIds: (state) => {
return state.sortedEpisodeIds || []
}
}
@ -146,6 +150,9 @@ export const mutations = {
setEpisodeTableEpisodeIds(state, val) {
state.episodeTableEpisodeIds = val || []
},
setSortedEpisodeIds(state, episodeIds) {
state.sortedEpisodeIds = episodeIds || []
},
setPreviousPath(state, val) {
state.previousPath = val
},