Add component to upload book cover images

This commit is contained in:
2025-10-27 22:51:28 +01:00
parent d407b41c9f
commit 8b8eee8210
11 changed files with 152 additions and 12 deletions

View File

@@ -2,6 +2,7 @@
import { ref, reactive, computed } from 'vue'
import { postBook, extractFormErrorFromField } from './api.js'
import { useRouter } from 'vue-router'
import CoverUpload from './CoverUpload.vue'
const router = useRouter();
@@ -28,6 +29,7 @@
}
})
}
</script>
<template>
@@ -48,6 +50,7 @@
</div>
<p v-if="authorError" class="help is-danger">{{authorError}}</p>
</div>
<CoverUpload name="cover"/>
<div class="field">
<div class="control">
<button class="button is-link">{{$t('addbook.submit')}}</button>