mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-30 15:55:26 +02:00
Add: Sortable collection books, play from collections, collection book table row updates #151
This commit is contained in:
parent
0980b6d5d5
commit
5e5792c0f8
21 changed files with 270 additions and 70 deletions
|
@ -175,7 +175,6 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
goPrevBook() {
|
||||
console.log('GO PREV', this.currentBookshelfIndex)
|
||||
if (this.currentBookshelfIndex - 1 < 0) return
|
||||
var prevBookId = this.bookshelfBookIds[this.currentBookshelfIndex - 1]
|
||||
var prevBook = this.$store.getters['audiobooks/getAudiobook'](prevBookId)
|
||||
|
@ -187,7 +186,6 @@ export default {
|
|||
}
|
||||
},
|
||||
goNextBook() {
|
||||
console.log('GO NEXT', this.currentBookshelfIndex)
|
||||
if (this.currentBookshelfIndex >= this.bookshelfBookIds.length - 1) return
|
||||
|
||||
var nextBookId = this.bookshelfBookIds[this.currentBookshelfIndex + 1]
|
||||
|
@ -226,7 +224,6 @@ export default {
|
|||
}
|
||||
},
|
||||
hotkey(action) {
|
||||
console.log('HOTKEY', action)
|
||||
if (action === this.$hotkeys.Modal.NEXT_PAGE) {
|
||||
this.goNextBook()
|
||||
} else if (action === this.$hotkeys.Modal.PREV_PAGE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue