mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-27 08:19:00 +01:00
Fix:Batch new collection #282
This commit is contained in:
parent
55e253ac60
commit
5a32fba88e
@ -102,6 +102,9 @@ export default {
|
||||
},
|
||||
selectedBookIds() {
|
||||
return this.$store.state.selectedAudiobooks || []
|
||||
},
|
||||
currentLibraryId() {
|
||||
return this.$store.state.libraries.currentLibraryId
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -186,9 +189,10 @@ export default {
|
||||
var books = this.showBatchUserCollectionModal ? this.selectedBookIds : [this.selectedAudiobookId]
|
||||
var newCollection = {
|
||||
books: books,
|
||||
libraryId: this.selectedAudiobook.libraryId,
|
||||
libraryId: this.currentLibraryId,
|
||||
name: this.newCollectionName
|
||||
}
|
||||
|
||||
this.$axios
|
||||
.$post('/api/collections', newCollection)
|
||||
.then((data) => {
|
||||
|
Loading…
Reference in New Issue
Block a user