custom brief > add images modal : close modal on add
This commit is contained in:
parent
70d2d33cbf
commit
732c91459a
3 changed files with 10 additions and 7 deletions
|
|
@ -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));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue