Update:Quick match all for library to use task instead of toast, remove scan socket events

This commit is contained in:
advplyr 2023-10-21 13:53:00 -05:00
parent 50215dab9a
commit 49403771c9
9 changed files with 45 additions and 89 deletions

View file

@ -1,5 +1,4 @@
export const state = () => ({
libraryScans: [],
providers: [
{
text: 'Google Books',
@ -72,26 +71,8 @@ export const state = () => ({
]
})
export const getters = {
getLibraryScan: state => id => {
return state.libraryScans.find(ls => ls.id === id)
}
}
export const getters = {}
export const actions = {
export const actions = {}
}
export const mutations = {
addUpdate(state, data) {
const index = state.libraryScans.findIndex(lib => lib.id === data.id)
if (index >= 0) {
state.libraryScans.splice(index, 1, data)
} else {
state.libraryScans.push(data)
}
},
remove(state, data) {
state.libraryScans = state.libraryScans.filter(scan => scan.id !== data.id)
}
}
export const mutations = {}