From ea5993fa76c6c9c29acfa836e1e96189353230ef Mon Sep 17 00:00:00 2001 From: Eugen Soliar <123383924+eugen-soliar@users.noreply.github.com> Date: Tue, 13 Feb 2024 23:12:43 +0100 Subject: [PATCH] renamed Remove & altered popover description (#1538) * renamed Remove button to Disconnect & altered popover dialog description accordingly * altered toast text on success & on error * fixed namings & replaced anyways with file path --- .../Collections/Collection/RemoveCollection/index.js | 9 +++++---- .../components/Sidebar/Collections/Collection/index.js | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/RemoveCollection/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/RemoveCollection/index.js index 11382b1fa..2635d3b60 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/RemoveCollection/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/RemoveCollection/index.js @@ -10,15 +10,16 @@ const RemoveCollection = ({ onClose, collection }) => { const onConfirm = () => { dispatch(removeCollection(collection.uid)) .then(() => { - toast.success('Collection removed'); + toast.success('Collection closed'); onClose(); }) - .catch(() => toast.error('An error occurred while removing the collection')); + .catch(() => toast.error('An error occurred while closing the collection')); }; return ( - - Are you sure you want to remove collection {collection.name} ? + + Are you sure you want to close collection {collection.name} from Bruno? It + will remain in your file system in {collection.pathname}. ); }; 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 81502831d..1c758f271 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js @@ -217,7 +217,7 @@ const Collection = ({ collection, searchText }) => { setShowRemoveCollectionModal(true); }} > - Remove + Close