mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-04-19 05:29:44 +00:00
Implement Ctrl+A Select All and Batch Reset functionality
This commit is contained in:
parent
23034e6672
commit
f7506e84d3
9 changed files with 266 additions and 3 deletions
|
|
@ -225,5 +225,12 @@ export const mutations = {
|
|||
} else if (selected && !isAlreadySelected) {
|
||||
state.selectedMediaItems.push(item)
|
||||
}
|
||||
},
|
||||
addBatchMediaItemsSelected(state, items) {
|
||||
items.forEach((item) => {
|
||||
if (!state.selectedMediaItems.some((i) => i.id === item.id)) {
|
||||
state.selectedMediaItems.push(item)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue