Manage display of book covers

This commit is contained in:
2025-10-28 18:35:36 +01:00
parent 8b8eee8210
commit b4df375e4c
20 changed files with 257 additions and 353 deletions

View File

@@ -8,7 +8,8 @@
const book = ref({
title: "",
author: ""
author: "",
coverId: null
});
const errors = ref(null)
const titleError = computed(() => {
@@ -50,7 +51,7 @@
</div>
<p v-if="authorError" class="help is-danger">{{authorError}}</p>
</div>
<CoverUpload name="cover"/>
<CoverUpload name="cover" @on-image-upload="(id) => book.coverId = id"/>
<div class="field">
<div class="control">
<button class="button is-link">{{$t('addbook.submit')}}</button>