From c4f7a5318ad0bfe58357432953e2c75cbbd995cd Mon Sep 17 00:00:00 2001 From: isUnknown Date: Mon, 27 Jan 2025 19:47:29 +0100 Subject: [PATCH] Project request dialog : close after submit --- src/components/ProjectRequestDialog.vue | 2 +- src/components/design-to-light/OptimizationRequestDialog.vue | 2 -- src/views/DesignToLight.vue | 5 +---- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/ProjectRequestDialog.vue b/src/components/ProjectRequestDialog.vue index 468db59..8770a6a 100644 --- a/src/components/ProjectRequestDialog.vue +++ b/src/components/ProjectRequestDialog.vue @@ -102,6 +102,6 @@ async function handleSubmit() { }; const response = await api.post(formData, "request-project-creation.json"); - console.log(response); + isOpen.value = false; } diff --git a/src/components/design-to-light/OptimizationRequestDialog.vue b/src/components/design-to-light/OptimizationRequestDialog.vue index 7066b4c..af26d80 100644 --- a/src/components/design-to-light/OptimizationRequestDialog.vue +++ b/src/components/design-to-light/OptimizationRequestDialog.vue @@ -102,8 +102,6 @@ async function handleSubmit() { formData, "/request-optimization-appointment.json" ); - - console.log(response); } diff --git a/src/views/DesignToLight.vue b/src/views/DesignToLight.vue index 6d7f167..54566e8 100644 --- a/src/views/DesignToLight.vue +++ b/src/views/DesignToLight.vue @@ -80,9 +80,6 @@ const isOptimizationDialogOpen = ref(false); const isProjectRequestDialogOpen = ref(false); const background = computed(() => { - return ( - page.value?.background?.url ?? - "https://plus.unsplash.com/premium_photo-1675355675464-2deabb1f893b?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D" - ); + return page.value?.background?.url; });