mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-04 18:24:46 +02:00
New search page, updated search menu includes tags #112
This commit is contained in:
parent
aa872948d5
commit
48f0e039e5
18 changed files with 259 additions and 57 deletions
|
@ -14,7 +14,8 @@ export const state = () => ({
|
|||
keywordFilter: null,
|
||||
selectedSeries: null,
|
||||
libraryPage: null,
|
||||
searchResults: []
|
||||
searchResults: {},
|
||||
searchResultAudiobooks: []
|
||||
})
|
||||
|
||||
export const getters = {
|
||||
|
@ -25,7 +26,7 @@ export const getters = {
|
|||
if (!state.libraryPage) {
|
||||
return getters.getFiltered()
|
||||
} else if (state.libraryPage === 'search') {
|
||||
return state.searchResults
|
||||
return state.searchResultAudiobooks
|
||||
} else if (state.libraryPage === 'series') {
|
||||
var series = getters.getSeriesGroups()
|
||||
if (state.selectedSeries) {
|
||||
|
@ -222,6 +223,7 @@ export const mutations = {
|
|||
},
|
||||
setSearchResults(state, val) {
|
||||
state.searchResults = val
|
||||
state.searchResultAudiobooks = val && val.audiobooks ? val.audiobooks.map(ab => ab.audiobook) : []
|
||||
},
|
||||
set(state, audiobooks) {
|
||||
// GENRES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue