@@ -24,7 +24,12 @@ export default {
index: Number,
width: Number,
height: Number,
- bookCoverAspectRatio: Number
+ bookCoverAspectRatio: Number,
+ isCategorized: Boolean,
+ seriesMount: {
+ type: Object,
+ default: () => null
+ }
},
data() {
return {
@@ -60,7 +65,7 @@ export default {
return `/library/${this.currentLibraryId}/series/${this.$encode(this.title)}`
},
seriesId() {
- return this.series ? this.$encode(this.series.id) : null
+ return this.series ? this.$encode(this.title) : null
},
hasValidCovers() {
var validCovers = this.books.map((bookItem) => bookItem.book.cover)
@@ -69,6 +74,7 @@ export default {
},
methods: {
setEntity(_series) {
+ console.log('setting entity', _series)
this.series = _series
},
setSelectionMode(val) {
@@ -100,7 +106,11 @@ export default {
}
}
},
- mounted() {},
+ mounted() {
+ if (this.seriesMount) {
+ this.setEntity(this.seriesMount)
+ }
+ },
beforeDestroy() {}
}
diff --git a/client/mixins/bookshelfCardsHelpers.js b/client/mixins/bookshelfCardsHelpers.js
index c9b7f85d..8c2fa349 100644
--- a/client/mixins/bookshelfCardsHelpers.js
+++ b/client/mixins/bookshelfCardsHelpers.js
@@ -71,6 +71,7 @@ export default {
instance.$mount()
instance.$el.style.transform = `translate3d(${shelfOffsetX}px, ${shelfOffsetY}px, 0px)`
+ instance.$el.classList.add('absolute', 'top-0', 'left-0')
shelfEl.appendChild(instance.$el)
if (this.entities[index]) {
diff --git a/client/plugins/init.client.js b/client/plugins/init.client.js
index 8978e44a..71e9f87a 100644
--- a/client/plugins/init.client.js
+++ b/client/plugins/init.client.js
@@ -143,5 +143,6 @@ export {
export default ({ app }, inject) => {
app.$decode = decode
app.$encode = encode
- app.$isDev = process.env.NODE_ENV !== 'production'
+ // app.$isDev = process.env.NODE_ENV !== 'production'
+ inject('isDev', process.env.NODE_ENV !== 'production')
}
\ No newline at end of file