From 2a4c84324cc09093e9c54cc037e55e03d4e0f9b2 Mon Sep 17 00:00:00 2001 From: kartikvirendrar Date: Thu, 16 Jan 2025 11:46:17 +0530 Subject: [PATCH 1/2] fix download all related task zip error --- src/config/config.js | 4 ++-- src/containers/Organization/Project/VideoList.jsx | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/config/config.js b/src/config/config.js index 8e5eae50..9f3a0d0e 100644 --- a/src/config/config.js +++ b/src/config/config.js @@ -2,9 +2,9 @@ const configs = { BASE_URL: "https://backend.chitralekha.ai4bharat.org/", BASE_URL_AUTO: process.env.REACT_APP_APIGW_BASE_URL ? process.env.REACT_APP_APIGW_BASE_URL - : "https://backend.dev.chitralekha.ai4bharat.org" + // : "https://backend.dev.chitralekha.ai4bharat.org" // : "https://backend.chitralekha.ai4bharat.org" - // : "http://127.0.0.1:8000", + : "http://127.0.0.1:8000", }; export default configs; diff --git a/src/containers/Organization/Project/VideoList.jsx b/src/containers/Organization/Project/VideoList.jsx index d8947fd3..17e36630 100644 --- a/src/containers/Organization/Project/VideoList.jsx +++ b/src/containers/Organization/Project/VideoList.jsx @@ -109,10 +109,6 @@ const VideoList = ({ data, removeVideo }) => { } break; - case "BULK_VIDEO_DOWNLOAD": - exportZip(data, "video", videoName); - break; - default: break; } @@ -161,9 +157,12 @@ const VideoList = ({ data, removeVideo }) => { const handleDownload = async () => { setOpenExportDialog(false); - const obj = new BulkDownloadForVideoAPI(videoIdForDowload, exportType); - dispatch(APITransport(obj)); + const link = document.createElement("a"); + link.href = obj.apiEndPoint(); + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); }; const result = data?.map((item, i) => { From 7834ce7defe068b05f33d6a32082caefd80c03d8 Mon Sep 17 00:00:00 2001 From: kartikvirendrar Date: Thu, 16 Jan 2025 11:47:03 +0530 Subject: [PATCH 2/2] fix download all related task zip error --- src/config/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/config.js b/src/config/config.js index 9f3a0d0e..8e5eae50 100644 --- a/src/config/config.js +++ b/src/config/config.js @@ -2,9 +2,9 @@ const configs = { BASE_URL: "https://backend.chitralekha.ai4bharat.org/", BASE_URL_AUTO: process.env.REACT_APP_APIGW_BASE_URL ? process.env.REACT_APP_APIGW_BASE_URL - // : "https://backend.dev.chitralekha.ai4bharat.org" + : "https://backend.dev.chitralekha.ai4bharat.org" // : "https://backend.chitralekha.ai4bharat.org" - : "http://127.0.0.1:8000", + // : "http://127.0.0.1:8000", }; export default configs;