Change:persist last search term #142

This commit is contained in:
advplyr
2022-04-26 17:05:49 -05:00
parent d64dd63ea4
commit be885009ad
3 changed files with 20 additions and 3 deletions
+5 -1
View File
@@ -2,7 +2,8 @@ export const state = () => ({
itemDownloads: [],
bookshelfListView: false,
series: null,
localMediaProgress: []
localMediaProgress: [],
lastSearch: null
})
export const getters = {
@@ -82,5 +83,8 @@ export const mutations = {
},
removeLocalMediaProgress(state, id) {
state.localMediaProgress = state.localMediaProgress.filter(lmp => lmp.id != id)
},
setLastSearch(state, val) {
state.lastSearch = val
}
}