mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-06 09:21:37 +00:00
Allow books to be merged
This commit is contained in:
parent
fc97b10f58
commit
56eca37304
9 changed files with 615 additions and 25 deletions
|
|
@ -32,12 +32,32 @@ export default {
|
|||
}
|
||||
},
|
||||
computed: {},
|
||||
watch: {
|
||||
'$route.query.edit': {
|
||||
handler(val) {
|
||||
if (val) {
|
||||
const library = this.$store.state.libraries.libraries.find((lib) => lib.id === val)
|
||||
if (library) {
|
||||
this.setShowLibraryModal(library)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
setShowLibraryModal(selectedLibrary) {
|
||||
this.selectedLibrary = selectedLibrary
|
||||
this.showLibraryModal = true
|
||||
}
|
||||
},
|
||||
mounted() {}
|
||||
mounted() {
|
||||
const editLibraryId = this.$route.query.edit
|
||||
if (editLibraryId) {
|
||||
const library = this.$store.state.libraries.libraries.find((lib) => lib.id === editLibraryId)
|
||||
if (library) {
|
||||
this.setShowLibraryModal(library)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue