This commit is contained in:
isUnknown 2024-10-16 17:32:15 +02:00
parent 4b6540dfcd
commit 965c015c2c
22 changed files with 396 additions and 299 deletions

View file

@ -12,7 +12,7 @@
>
Ajouter une ou plusieurs images
</button>
<template v-for="image in page.images" :key="image.uri">
<template v-for="image in page.moodboard" :key="image.uri">
<figure
v-if="
selectedTags.length === 0 ||
@ -66,7 +66,7 @@ function changeSelectedTags(newTags) {
function removeImage(target) {
console.log("remove", target);
page.value.images = page.value.images.filter(
page.value.moodboard = page.value.moodboard.filter(
(image) => image.uuid !== target.uuid
);
}

View file

@ -198,7 +198,7 @@ function addImagesToBrief() {
})
.then((res) => res.json())
.then((json) => {
page.value.images = json.images;
page.value.moodboard = json.images;
console.log(json);
})
.catch((error) => console.error("Error:", error));