Add: collections no longer experimental & add collections in book card more menu

This commit is contained in:
advplyr 2021-11-13 16:06:32 -06:00
parent ac72ec1317
commit 416aa3bd60
4 changed files with 19 additions and 3 deletions

View file

@ -1,5 +1,11 @@
<template>
<modals-modal v-model="show" name="collections" :processing="processing" :width="500" :height="'unset'">
<template #outer>
<div class="absolute top-0 left-0 p-5 w-2/3 overflow-hidden">
<p class="font-book text-3xl text-white truncate">{{ title }}</p>
</div>
</template>
<div ref="container" class="w-full rounded-lg bg-primary box-shadow-md overflow-y-auto overflow-x-hidden" style="max-height: 80vh">
<div v-if="show" class="w-full h-full">
<div class="py-4 px-4">
@ -56,6 +62,9 @@ export default {
this.$store.commit('globals/setShowUserCollectionsModal', val)
}
},
title() {
return this.selectedAudiobook ? this.selectedAudiobook.book.title : ''
},
selectedAudiobook() {
return this.$store.state.selectedAudiobook
},