custom brief > add images modal : close modal on add

This commit is contained in:
isUnknown 2025-01-07 18:27:57 +01:00
parent 70d2d33cbf
commit 732c91459a
3 changed files with 10 additions and 7 deletions

View file

@ -114,6 +114,8 @@ const { page } = storeToRefs(usePageStore());
const { activeTab } = storeToRefs(useAddImagesModalStore());
const emit = defineEmits("close");
const images = computed(() => {
return activeTab.value.selectedImages;
});
@ -198,7 +200,7 @@ function addImagesToBrief() {
.then((res) => res.json())
.then((json) => {
page.value.moodboard = json.images;
console.log(json);
emit("close");
})
.catch((error) => console.error("Error:", error));
});