From 5033f9b5f8ed5b50b647aee8c5cf6660dd10b3eb Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Mon, 29 Apr 2024 14:12:05 +0800 Subject: [PATCH] Laravel Vapor - sync code for download files in bulk from S3 to more files --- .../elements/DownloadSupplierWhiteFormComponent.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/resources/assets/vue/components/bookings/elements/DownloadSupplierWhiteFormComponent.vue b/resources/assets/vue/components/bookings/elements/DownloadSupplierWhiteFormComponent.vue index 59465f25..ef18c6a9 100644 --- a/resources/assets/vue/components/bookings/elements/DownloadSupplierWhiteFormComponent.vue +++ b/resources/assets/vue/components/bookings/elements/DownloadSupplierWhiteFormComponent.vue @@ -86,10 +86,19 @@ export default { }, successHandler(response) { this.isLoading = false; + console.log('debug response: ' + JSON.stringify(response)); if (response.message) { this.returnData = response; - } else { + } + else { this.returnData = null; + if(window.LARAVEL_VAPOR_ENABLED){ + console.log('window.LARAVEL_VAPOR_ENABLED'); + let src = response.src; + if (src) { + window.location.href = src; + } + } } }, },