2021-08-27 01:32:05 +02:00
|
|
|
<template>
|
|
|
|
<div ref="page" id="page-wrapper" class="page px-6 pt-6 pb-52 overflow-y-auto" :class="streamAudiobook ? 'streaming' : ''">
|
2022-02-17 21:33:12 +01:00
|
|
|
<div class="border border-white border-opacity-10 max-w-7xl mx-auto mb-10 mt-5">
|
|
|
|
<div class="flex items-center px-4 py-4 cursor-pointer" @click="openMapOptions = !openMapOptions" @mousedown.prevent @mouseup.prevent>
|
|
|
|
<span class="material-icons">{{ openMapOptions ? 'expand_less' : 'expand_more' }}</span>
|
2021-12-21 03:21:25 +01:00
|
|
|
|
2022-02-17 21:33:12 +01:00
|
|
|
<p class="ml-4 text-gray-200 text-lg">Map details</p>
|
|
|
|
</div>
|
|
|
|
<div class="overflow-hidden">
|
|
|
|
<transition name="slide">
|
|
|
|
<div v-if="openMapOptions" class="flex flex-wrap">
|
|
|
|
<div class="flex items-center px-4 w-1/2">
|
|
|
|
<ui-checkbox v-model="selectedBatchUsage.subtitle" />
|
|
|
|
<ui-text-input-with-label ref="subtitleInput" v-model="batchDetails.subtitle" :disabled="!selectedBatchUsage.subtitle" label="Subtitle" class="mb-4 ml-4" />
|
|
|
|
</div>
|
|
|
|
<div class="flex items-center px-4 w-1/2">
|
|
|
|
<ui-checkbox v-model="selectedBatchUsage.author" />
|
|
|
|
<ui-text-input-with-label ref="authorInput" v-model="batchDetails.author" :disabled="!selectedBatchUsage.author" label="Author" class="mb-4 ml-4" />
|
|
|
|
</div>
|
|
|
|
<div class="flex items-center px-4 w-1/2">
|
|
|
|
<ui-checkbox v-model="selectedBatchUsage.publishYear" />
|
|
|
|
<ui-text-input-with-label ref="publishYearInput" v-model="batchDetails.publishYear" :disabled="!selectedBatchUsage.publishYear" label="Publish Year" class="mb-4 ml-4" />
|
|
|
|
</div>
|
|
|
|
<div class="flex items-center px-4 w-1/2">
|
|
|
|
<ui-checkbox v-model="selectedBatchUsage.series" />
|
|
|
|
<ui-input-dropdown ref="seriesDropdown" v-model="batchDetails.series" :disabled="!selectedBatchUsage.series" label="Series" :items="seriesItems" @input="seriesChanged" @newItem="newSeriesItem" class="mb-4 ml-4" />
|
|
|
|
</div>
|
|
|
|
<div class="flex items-center px-4 w-1/2">
|
|
|
|
<ui-checkbox v-model="selectedBatchUsage.genres" />
|
|
|
|
<ui-multi-select ref="genresSelect" v-model="batchDetails.genres" :disabled="!selectedBatchUsage.genres" label="Genres" :items="genreItems" @newItem="newGenreItem" @removedItem="removedGenreItem" class="mb-4 ml-4" />
|
|
|
|
</div>
|
|
|
|
<div class="flex items-center px-4 w-1/2">
|
|
|
|
<ui-checkbox v-model="selectedBatchUsage.tags" />
|
|
|
|
<ui-multi-select ref="tagsSelect" v-model="batchDetails.tags" label="Tags" :disabled="!selectedBatchUsage.tags" :items="tagItems" @newItem="newTagItem" @removedItem="removedTagItem" class="mb-4 ml-4" />
|
|
|
|
</div>
|
|
|
|
<div class="flex items-center px-4 w-1/2">
|
|
|
|
<ui-checkbox v-model="selectedBatchUsage.narrator" />
|
|
|
|
<ui-text-input-with-label ref="narratorInput" v-model="batchDetails.narrator" :disabled="!selectedBatchUsage.narrator" label="Narrator" class="mb-4 ml-4" />
|
|
|
|
</div>
|
|
|
|
<div class="flex items-center px-4 w-1/2">
|
|
|
|
<ui-checkbox v-model="selectedBatchUsage.publisher" />
|
|
|
|
<ui-text-input-with-label ref="publisherInput" v-model="batchDetails.publisher" :disabled="!selectedBatchUsage.publisher" label="Publisher" class="mb-4 ml-4" />
|
|
|
|
</div>
|
|
|
|
<div class="flex items-center px-4 w-1/2">
|
|
|
|
<ui-checkbox v-model="selectedBatchUsage.language" />
|
|
|
|
<ui-text-input-with-label ref="languageInput" v-model="batchDetails.language" :disabled="!selectedBatchUsage.language" label="Language" class="mb-4 ml-4" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="w-full flex items-center justify-end p-4">
|
|
|
|
<ui-btn color="success" :disabled="!hasSelectedBatchUsage" :padding-x="8" small class="text-base" :loading="isProcessing" @click="mapBatchDetails">Apply</ui-btn>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</transition>
|
2021-12-21 03:21:25 +01:00
|
|
|
</div>
|
2022-02-17 21:33:12 +01:00
|
|
|
</div>
|
2021-12-21 03:21:25 +01:00
|
|
|
|
2021-08-27 01:32:05 +02:00
|
|
|
<div class="flex justify-center flex-wrap">
|
|
|
|
<template v-for="audiobook in audiobookCopies">
|
|
|
|
<div :key="audiobook.id" class="w-full max-w-3xl border border-black-300 p-6 -ml-px -mt-px flex">
|
|
|
|
<div class="w-32">
|
2021-12-03 02:02:38 +01:00
|
|
|
<covers-book-cover :audiobook="audiobook.originalAudiobook" :width="120" :book-cover-aspect-ratio="bookCoverAspectRatio" />
|
2021-08-27 01:32:05 +02:00
|
|
|
</div>
|
|
|
|
<div class="flex-grow pl-4">
|
|
|
|
<ui-text-input-with-label v-model="audiobook.book.title" label="Title" />
|
|
|
|
|
2021-09-05 02:58:39 +02:00
|
|
|
<ui-text-input-with-label v-model="audiobook.book.subtitle" label="Subtitle" class="mt-2" />
|
|
|
|
|
2021-08-27 01:32:05 +02:00
|
|
|
<div class="flex mt-2 -mx-1">
|
|
|
|
<div class="w-3/4 px-1">
|
|
|
|
<ui-text-input-with-label v-model="audiobook.book.author" label="Author" />
|
|
|
|
</div>
|
|
|
|
<div class="flex-grow px-1">
|
|
|
|
<ui-text-input-with-label v-model="audiobook.book.publishYear" type="number" label="Publish Year" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex mt-2 -mx-1">
|
|
|
|
<div class="w-3/4 px-1">
|
|
|
|
<ui-input-dropdown v-model="audiobook.book.series" label="Series" :items="seriesItems" @input="seriesChanged" @newItem="newSeriesItem" />
|
|
|
|
</div>
|
|
|
|
<div class="flex-grow px-1">
|
|
|
|
<ui-text-input-with-label v-model="audiobook.book.volumeNumber" label="Volume #" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ui-textarea-with-label v-model="audiobook.book.description" :rows="3" label="Description" class="mt-2" />
|
|
|
|
|
|
|
|
<div class="flex mt-2 -mx-1">
|
|
|
|
<div class="w-1/2 px-1">
|
2021-10-16 03:31:00 +02:00
|
|
|
<ui-multi-select v-model="audiobook.book.genres" label="Genres" :items="genreItems" @newItem="newGenreItem" @removedItem="removedGenreItem" />
|
2021-08-27 01:32:05 +02:00
|
|
|
</div>
|
|
|
|
<div class="flex-grow px-1">
|
2021-10-16 03:31:00 +02:00
|
|
|
<ui-multi-select v-model="audiobook.tags" label="Tags" :items="tagItems" @newItem="newTagItem" @removedItem="removedTagItem" />
|
2021-08-27 01:32:05 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-09-05 02:58:39 +02:00
|
|
|
|
2022-01-10 01:37:16 +01:00
|
|
|
<!-- <div class="flex mt-2 -mx-1">
|
2021-09-05 02:58:39 +02:00
|
|
|
<div class="w-1/2 px-1">
|
2021-10-07 04:08:52 +02:00
|
|
|
<ui-text-input-with-label v-model="audiobook.book.narrator" label="Narrator" />
|
2021-09-05 02:58:39 +02:00
|
|
|
</div>
|
2022-01-10 01:37:16 +01:00
|
|
|
</div> -->
|
|
|
|
<div class="flex mt-2 -mx-1">
|
|
|
|
<div class="w-1/3 px-1">
|
|
|
|
<ui-text-input-with-label v-model="audiobook.book.narrator" label="Narrator" />
|
|
|
|
</div>
|
|
|
|
<div class="w-1/3 px-1">
|
|
|
|
<ui-text-input-with-label v-model="audiobook.book.publisher" label="Publisher" />
|
|
|
|
</div>
|
|
|
|
<div class="flex-grow px-1">
|
|
|
|
<ui-text-input-with-label v-model="audiobook.book.language" label="Language" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex mt-2 -mx-1">
|
|
|
|
<div class="w-1/3 px-1">
|
|
|
|
<ui-text-input-with-label v-model="audiobook.book.isbn" label="ISBN" />
|
|
|
|
</div>
|
|
|
|
<div class="w-1/3 px-1">
|
|
|
|
<ui-text-input-with-label v-model="audiobook.book.asin" label="ASIN" />
|
|
|
|
</div>
|
2021-09-05 02:58:39 +02:00
|
|
|
</div>
|
2021-08-27 01:32:05 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
<div v-show="isProcessing" class="fixed top-0 left-0 z-50 w-full h-full flex items-center justify-center bg-black bg-opacity-60">
|
|
|
|
<ui-loading-indicator />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div :class="isScrollable ? 'fixed left-0 box-shadow-lg-up bg-primary' : ''" class="w-full h-20 px-4 flex items-center border-t border-bg z-40" :style="{ bottom: streamAudiobook ? '165px' : '0px' }">
|
|
|
|
<div class="flex-grow" />
|
2021-12-07 00:55:43 +01:00
|
|
|
<ui-btn color="success" :padding-x="8" class="text-lg" :loading="isProcessing" @click.prevent="saveClick">Save</ui-btn>
|
2021-08-27 01:32:05 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2021-12-02 02:07:03 +01:00
|
|
|
async asyncData({ store, redirect, app }) {
|
2021-08-27 01:32:05 +02:00
|
|
|
if (!store.state.selectedAudiobooks.length) {
|
|
|
|
return redirect('/')
|
|
|
|
}
|
2021-12-02 02:07:03 +01:00
|
|
|
var audiobooks = await app.$axios.$post(`/api/books/batch/get`, { books: store.state.selectedAudiobooks }).catch((error) => {
|
|
|
|
var errorMsg = error.response.data || 'Failed to get audiobooks'
|
|
|
|
console.error(errorMsg, error)
|
|
|
|
return []
|
|
|
|
})
|
2021-08-27 01:32:05 +02:00
|
|
|
return {
|
|
|
|
audiobooks
|
|
|
|
}
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
isProcessing: false,
|
|
|
|
audiobookCopies: [],
|
|
|
|
isScrollable: false,
|
2021-10-16 03:31:00 +02:00
|
|
|
newSeriesItems: [],
|
|
|
|
newTagItems: [],
|
2021-12-21 03:21:25 +01:00
|
|
|
newGenreItems: [],
|
2022-02-17 21:33:12 +01:00
|
|
|
batchDetails: {
|
|
|
|
subtitle: null,
|
2021-12-21 03:21:25 +01:00
|
|
|
author: null,
|
2022-02-17 21:33:12 +01:00
|
|
|
publishYear: null,
|
2021-12-21 03:21:25 +01:00
|
|
|
series: null,
|
2022-02-17 21:33:12 +01:00
|
|
|
genres: [],
|
|
|
|
tags: [],
|
|
|
|
narrator: null,
|
|
|
|
publisher: null,
|
|
|
|
language: null
|
2021-12-21 03:21:25 +01:00
|
|
|
},
|
|
|
|
selectedBatchUsage: {
|
2022-02-17 21:33:12 +01:00
|
|
|
subtitle: false,
|
2021-12-21 03:21:25 +01:00
|
|
|
author: false,
|
2022-02-17 21:33:12 +01:00
|
|
|
publishYear: false,
|
2021-12-21 03:21:25 +01:00
|
|
|
series: false,
|
2022-02-17 21:33:12 +01:00
|
|
|
genres: false,
|
|
|
|
tags: false,
|
|
|
|
narrator: false,
|
|
|
|
publisher: false,
|
|
|
|
language: false
|
2021-12-21 03:21:25 +01:00
|
|
|
},
|
2022-02-17 21:33:12 +01:00
|
|
|
openMapOptions: false
|
2021-08-27 01:32:05 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
computed: {
|
2021-12-03 02:02:38 +01:00
|
|
|
coverAspectRatio() {
|
|
|
|
return this.$store.getters['getServerSetting']('coverAspectRatio')
|
|
|
|
},
|
|
|
|
bookCoverAspectRatio() {
|
|
|
|
return this.coverAspectRatio === this.$constants.BookCoverAspectRatio.SQUARE ? 1 : 1.6
|
|
|
|
},
|
2021-08-27 01:32:05 +02:00
|
|
|
streamAudiobook() {
|
|
|
|
return this.$store.state.streamAudiobook
|
|
|
|
},
|
2021-10-16 03:31:00 +02:00
|
|
|
genreItems() {
|
|
|
|
return this.genres.concat(this.newGenreItems)
|
|
|
|
},
|
|
|
|
tagItems() {
|
|
|
|
return this.tags.concat(this.newTagItems)
|
|
|
|
},
|
2021-08-27 01:32:05 +02:00
|
|
|
seriesItems() {
|
|
|
|
return [...this.series, ...this.newSeriesItems]
|
2021-10-07 04:08:52 +02:00
|
|
|
},
|
2021-12-02 02:07:03 +01:00
|
|
|
genres() {
|
|
|
|
return this.filterData.genres || []
|
|
|
|
},
|
|
|
|
tags() {
|
|
|
|
return this.filterData.tags || []
|
|
|
|
},
|
|
|
|
series() {
|
|
|
|
return this.filterData.series || []
|
|
|
|
},
|
|
|
|
filterData() {
|
|
|
|
return this.$store.state.libraries.filterData || {}
|
|
|
|
},
|
2021-10-07 04:08:52 +02:00
|
|
|
currentLibraryId() {
|
|
|
|
return this.$store.state.libraries.currentLibraryId
|
2022-02-17 21:33:12 +01:00
|
|
|
},
|
|
|
|
hasSelectedBatchUsage() {
|
|
|
|
return Object.values(this.selectedBatchUsage).some((b) => !!b)
|
2021-08-27 01:32:05 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
2022-02-17 21:33:12 +01:00
|
|
|
blurBatchForm() {
|
|
|
|
if (this.$refs.seriesDropdown && this.$refs.seriesDropdown.isFocused) {
|
|
|
|
this.$refs.seriesDropdown.blur()
|
|
|
|
}
|
|
|
|
if (this.$refs.genresSelect && this.$refs.genresSelect.isFocused) {
|
|
|
|
this.$refs.genresSelect.forceBlur()
|
|
|
|
}
|
|
|
|
if (this.$refs.tagsSelect && this.$refs.tagsSelect.isFocused) {
|
|
|
|
this.$refs.tagsSelect.forceBlur()
|
|
|
|
}
|
|
|
|
|
|
|
|
for (const key in this.batchDetails) {
|
|
|
|
if (this.$refs[`${key}Input`] && this.$refs[`${key}Input`].blur) {
|
|
|
|
this.$refs[`${key}Input`].blur()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
mapBatchDetails() {
|
|
|
|
this.blurBatchForm()
|
|
|
|
|
|
|
|
this.audiobookCopies = this.audiobookCopies.map((ab) => {
|
|
|
|
for (const key in this.selectedBatchUsage) {
|
|
|
|
if (this.selectedBatchUsage[key]) {
|
|
|
|
if (key === 'tags') {
|
|
|
|
ab.tags = this.batchDetails.tags
|
|
|
|
} else {
|
|
|
|
ab.book[key] = this.batchDetails[key]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ab
|
|
|
|
})
|
|
|
|
this.$toast.success('Details mapped')
|
|
|
|
},
|
2021-10-16 03:31:00 +02:00
|
|
|
newTagItem(item) {
|
|
|
|
if (item && !this.newTagItems.includes(item)) {
|
|
|
|
this.newTagItems.push(item)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
removedTagItem(item) {
|
|
|
|
// If newly added, remove if not used on any other audiobooks
|
|
|
|
if (item && this.newTagItems.includes(item)) {
|
|
|
|
var usedByOtherAb = this.audiobookCopies.find((ab) => {
|
|
|
|
return ab.tags && ab.tags.includes(item)
|
|
|
|
})
|
|
|
|
if (!usedByOtherAb) {
|
|
|
|
this.newTagItems = this.newTagItems.filter((t) => t !== item)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
newGenreItem(item) {
|
|
|
|
if (item && !this.newGenreItems.includes(item)) {
|
|
|
|
this.newGenreItems.push(item)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
removedGenreItem(item) {
|
|
|
|
// If newly added, remove if not used on any other audiobooks
|
|
|
|
if (item && this.newGenreItems.includes(item)) {
|
|
|
|
var usedByOtherAb = this.audiobookCopies.find((ab) => {
|
|
|
|
return ab.book.genres && ab.book.genres.includes(item)
|
|
|
|
})
|
|
|
|
if (!usedByOtherAb) {
|
|
|
|
this.newGenreItems = this.newGenreItems.filter((t) => t !== item)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-08-27 01:32:05 +02:00
|
|
|
newSeriesItem(item) {
|
2021-10-16 03:31:00 +02:00
|
|
|
if (item && !this.newSeriesItems.includes(item)) {
|
|
|
|
this.newSeriesItems.push(item)
|
|
|
|
}
|
2021-08-27 01:32:05 +02:00
|
|
|
},
|
|
|
|
seriesChanged() {
|
|
|
|
this.newSeriesItems = this.newSeriesItems.filter((item) => {
|
|
|
|
return this.audiobookCopies.find((ab) => ab.book.series === item)
|
|
|
|
})
|
|
|
|
},
|
|
|
|
init() {
|
|
|
|
this.audiobookCopies = this.audiobooks.map((ab) => {
|
|
|
|
var copy = { ...ab }
|
|
|
|
copy.tags = [...ab.tags]
|
|
|
|
copy.book = { ...ab.book }
|
|
|
|
copy.book.genres = [...ab.book.genres]
|
|
|
|
copy.originalAudiobook = ab
|
|
|
|
return copy
|
|
|
|
})
|
|
|
|
this.$nextTick(() => {
|
|
|
|
if (this.$refs.page.scrollHeight > this.$refs.page.clientHeight) {
|
|
|
|
this.isScrollable = true
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
2021-12-07 00:55:43 +01:00
|
|
|
compareStringArrays(arr1, arr2) {
|
|
|
|
if (!arr1 || !arr2) return false
|
|
|
|
return arr1.join(',') !== arr2.join(',')
|
|
|
|
},
|
|
|
|
compareAudiobooks(newAb, origAb) {
|
2022-01-10 01:37:16 +01:00
|
|
|
const bookKeysToCheck = ['title', 'subtitle', 'narrator', 'author', 'publishYear', 'series', 'volumeNumber', 'description', 'language', 'publisher', 'isbn', 'asin']
|
2021-12-07 00:55:43 +01:00
|
|
|
var newBook = newAb.book
|
|
|
|
var origBook = origAb.book
|
|
|
|
var diffObj = {}
|
|
|
|
for (const key in newBook) {
|
|
|
|
if (bookKeysToCheck.includes(key)) {
|
|
|
|
if (newBook[key] !== origBook[key]) {
|
|
|
|
if (!diffObj.book) diffObj.book = {}
|
|
|
|
diffObj.book[key] = newBook[key]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (key === 'genres') {
|
|
|
|
if (this.compareStringArrays(newBook[key], origBook[key])) {
|
2021-12-21 02:12:09 +01:00
|
|
|
if (!diffObj.book) diffObj.book = {}
|
|
|
|
diffObj.book[key] = newBook[key]
|
2021-12-07 00:55:43 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (newAb.tags && origAb.tags && newAb.tags.join(',') !== origAb.tags.join(',')) {
|
|
|
|
diffObj.tags = newAb.tags
|
|
|
|
}
|
|
|
|
return diffObj
|
|
|
|
},
|
2021-08-27 01:32:05 +02:00
|
|
|
saveClick() {
|
2021-12-07 00:55:43 +01:00
|
|
|
var updates = []
|
|
|
|
for (let i = 0; i < this.audiobookCopies.length; i++) {
|
|
|
|
var ab = { ...this.audiobookCopies[i] }
|
|
|
|
var origAb = ab.originalAudiobook
|
|
|
|
delete ab.originalAudiobook
|
2021-08-27 01:32:05 +02:00
|
|
|
|
2021-12-07 00:55:43 +01:00
|
|
|
var res = this.compareAudiobooks(ab, origAb)
|
|
|
|
if (res && Object.keys(res).length) {
|
|
|
|
updates.push({
|
|
|
|
id: ab.id,
|
|
|
|
updates: res
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!updates.length) {
|
|
|
|
return this.$toast.warning('No updates were made')
|
|
|
|
}
|
2021-12-21 02:12:09 +01:00
|
|
|
|
2021-12-07 00:55:43 +01:00
|
|
|
console.log('Pushing updates', updates)
|
|
|
|
this.isProcessing = true
|
2021-08-27 01:32:05 +02:00
|
|
|
this.$axios
|
2021-12-07 00:55:43 +01:00
|
|
|
.$post('/api/books/batch/update', updates)
|
2021-08-27 01:32:05 +02:00
|
|
|
.then((data) => {
|
|
|
|
this.isProcessing = false
|
|
|
|
if (data.updates) {
|
|
|
|
this.$toast.success(`Successfully updated ${data.updates} audiobooks`)
|
2021-12-02 02:07:03 +01:00
|
|
|
this.$router.replace(`/library/${this.currentLibraryId}/bookshelf`)
|
2021-08-27 01:32:05 +02:00
|
|
|
} else {
|
|
|
|
this.$toast.warning('No updates were necessary')
|
|
|
|
}
|
|
|
|
})
|
|
|
|
.catch((error) => {
|
|
|
|
console.error('failed to batch update', error)
|
|
|
|
this.$toast.error('Failed to batch update')
|
|
|
|
this.isProcessing = false
|
|
|
|
})
|
2021-12-21 03:21:25 +01:00
|
|
|
},
|
|
|
|
applyBatchUpdates() {
|
|
|
|
this.audiobookCopies = this.audiobookCopies.map((ab) => {
|
2022-02-17 21:33:12 +01:00
|
|
|
if (this.batchDetails.series) ab.book.series = this.batchDetails.series
|
2021-12-21 03:21:25 +01:00
|
|
|
})
|
2021-08-27 01:32:05 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.init()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2022-02-17 21:33:12 +01:00
|
|
|
<style>
|
|
|
|
.slide-enter-active,
|
|
|
|
.slide-leave-active {
|
|
|
|
transition: transform 0.2s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.slide-enter,
|
|
|
|
.slide-leave-to {
|
|
|
|
transform: translateY(-100%);
|
|
|
|
transition: all 150ms ease-in 0s;
|
|
|
|
}
|
|
|
|
</style>
|