mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-08 10:21:38 +00:00
Fixes after review: add tests, tighten schema and errors
This commit is contained in:
parent
19497add98
commit
c6e804bcae
12 changed files with 725 additions and 0 deletions
|
|
@ -120,6 +120,8 @@
|
|||
</button>
|
||||
</template>
|
||||
</ui-context-menu-dropdown>
|
||||
|
||||
<recommend-button v-if="isBook && libraryItem?.id" :book-id="libraryItem.id" class="ml-2" />
|
||||
</div>
|
||||
|
||||
<div class="my-4 w-full">
|
||||
|
|
@ -137,6 +139,8 @@
|
|||
<tables-ebook-files-table v-if="ebookFiles.length" :library-item="libraryItem" class="mt-6" />
|
||||
|
||||
<tables-library-files-table v-if="libraryFiles.length" :library-item="libraryItem" class="mt-6" />
|
||||
|
||||
<book-recommendations v-if="libraryItem?.id" :book-id="libraryItem.id" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -147,7 +151,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import RecommendButton from '@/components/recommendations/RecommendButton.vue'
|
||||
export default {
|
||||
components: { RecommendButton },
|
||||
async asyncData({ store, params, app, redirect, route }) {
|
||||
if (!store.state.user.user) {
|
||||
return redirect(`/login?redirect=${route.path}`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue