From 506179a9682a6c8e75996750515bc03f1215d0e5 Mon Sep 17 00:00:00 2001 From: Amit Amrutiya Date: Fri, 17 Jan 2025 15:44:15 +0530 Subject: [PATCH 1/2] feat: make clone button as a primary action Signed-off-by: Amit Amrutiya --- src/custom/CatalogDetail/ActionButton.tsx | 41 +++++++++++------------ 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/src/custom/CatalogDetail/ActionButton.tsx b/src/custom/CatalogDetail/ActionButton.tsx index bf601a09a..55eaf14c9 100644 --- a/src/custom/CatalogDetail/ActionButton.tsx +++ b/src/custom/CatalogDetail/ActionButton.tsx @@ -76,31 +76,13 @@ const ActionButtons: React.FC = ({ width: '100%' }} > - - cleanedType === VIEWS - ? downloadYaml(details.pattern_file, details.name) - : downloadPattern(details.id, details.name, getDownloadUrl) - } - > - - Download - - {cleanedType !== FILTERS && ( handleClone(details?.name, details?.id)} @@ -110,12 +92,29 @@ const ActionButtons: React.FC = ({ ) : ( <> - + Clone )} )} + + cleanedType === VIEWS + ? downloadYaml(details.pattern_file, details.name) + : downloadPattern(details.id, details.name, getDownloadUrl) + } + > + + Download + )} From f4bc02358c638945d214fb54d8794690d80e7981 Mon Sep 17 00:00:00 2001 From: Amit Amrutiya Date: Fri, 17 Jan 2025 15:45:56 +0530 Subject: [PATCH 2/2] fix: color Signed-off-by: Amit Amrutiya --- src/custom/CatalogDetail/ActionButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/custom/CatalogDetail/ActionButton.tsx b/src/custom/CatalogDetail/ActionButton.tsx index 55eaf14c9..dddd7a0b5 100644 --- a/src/custom/CatalogDetail/ActionButton.tsx +++ b/src/custom/CatalogDetail/ActionButton.tsx @@ -92,7 +92,7 @@ const ActionButtons: React.FC = ({ ) : ( <> - + Clone )}