This commit is contained in:
j3d1 2023-10-31 21:25:13 +01:00
parent 034c4a9ee0
commit 6248a7ef2f

View file

@ -14,7 +14,7 @@
<div> <div>
<img v-for="file in only_images(files)" :key="file.id" :src="file.name" :alt="file.name" <img v-for="file in only_images(files)" :key="file.id" :src="file.name" :alt="file.name"
class="img-thumbnail" :title="file.mime_type"> class="img-thumbnail" :title="file.mime_type">
<img v-for="file in whithout_images(item_files)" :key="file.id" :alt="file.name" <img v-for="file in only_images(item_files)" :key="file.id" :alt="file.name"
:src="'data:' + file.mime_type + ';base64,' + file.data" class="img-thumbnail border-info"> :src="'data:' + file.mime_type + ';base64,' + file.data" class="img-thumbnail border-info">
<fs-file-source @input="addFiles"> <fs-file-source @input="addFiles">
<div class="img-thumbnail btn btn-outline-primary"> <div class="img-thumbnail btn btn-outline-primary">
@ -79,7 +79,7 @@ export default {
...mapActions(["fetchFiles", "pushFile"]), ...mapActions(["fetchFiles", "pushFile"]),
async uploadFiles(files) { async uploadFiles(files) {
const jobs = files.map(async file => { const jobs = files.map(async file => {
await this.pushFile({ return await this.pushFile({
file: file, file: file,
item_id: this.item_id item_id: this.item_id
}); });