Allow books to be merged

This commit is contained in:
Tiberiu Ichim 2026-02-12 19:57:04 +02:00
parent fc97b10f58
commit 56eca37304
9 changed files with 615 additions and 25 deletions

View file

@ -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>