From 47bb3bbd15689a19fb3bd87667749f274c82f18f Mon Sep 17 00:00:00 2001 From: jbyrne Date: Mon, 29 Jul 2024 13:34:08 -0700 Subject: [PATCH] feature/swodlr-ui-115: added copy dropdown for product ids --- src/components/history/GeneratedProductHistory.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/history/GeneratedProductHistory.tsx b/src/components/history/GeneratedProductHistory.tsx index afa0cdc..c0aecb2 100644 --- a/src/components/history/GeneratedProductHistory.tsx +++ b/src/components/history/GeneratedProductHistory.tsx @@ -128,6 +128,7 @@ const GeneratedProductHistory = () => { const renderHistoryTable = () => { const downloadButtonDisabled = checkedProducts.length === 0 || checkedProducts.every(product => product.granules.length === 0) const downloadUrlList = checkedProducts.map(product => product.granules.map(granule => granule.uri)).flat() + const productIdList = checkedProducts.map(product => product.id) return ( {} @@ -141,6 +142,7 @@ const GeneratedProductHistory = () => { {checkedProducts.length} Actions}> handleDownloadProduct(downloadUrlList)}>Download handleCopyClick(downloadUrlList)}>Copy Download Url + handleCopyClick(productIdList)}>Copy Products Id handleOnReGenerateClick(checkedProducts)}>Re-Generate