From 83e63e749e2da32a51897ae3a05404180d588b8d Mon Sep 17 00:00:00 2001 From: Pooja Belaramani Date: Tue, 31 Dec 2024 12:25:03 +0530 Subject: [PATCH] feat: open setting for folder and collection when --- .../Collection/CollectionItem/index.js | 23 +++++++++++++++---- .../Sidebar/Collections/Collection/index.js | 7 +++--- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js index fb380c20e..689574a90 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js @@ -128,13 +128,23 @@ const CollectionItem = ({ item, collection, searchText }) => { ); return; } + dispatch( + addTab({ + uid: item.uid, + collectionUid: collection.uid, + type: 'folder-settings' + }) + ); + }; + + const handleFolderCollapse = () => { dispatch( collectionFolderClicked({ itemUid: item.uid, collectionUid: collection.uid }) ); - }; + } const handleRightClick = (event) => { const _menuDropdown = dropdownTippyRef.current; @@ -260,9 +270,6 @@ const CollectionItem = ({ item, collection, searchText }) => { }) : null}
{ strokeWidth={2} className={iconClassName} style={{ color: 'rgb(160 160 160)' }} + onClick={handleFolderCollapse} /> ) : null}
-
+
{item.name} diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js index 1c758f271..9ac3b6793 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js @@ -141,16 +141,17 @@ const Collection = ({ collection, searchText }) => {
-