mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-25 05:35:41 +00:00
fix: Update SaveTransientRequestModal empty state when collections don't exist (#7955)
This commit is contained in:
committed by
GitHub
parent
327861b353
commit
0c7bce3320
@@ -547,8 +547,18 @@ const SaveTransientRequest = ({ item: itemProp, collection: collectionProp, isOp
|
||||
</ul>
|
||||
) : (
|
||||
<div className="collection-empty-state">
|
||||
<p>No collections Yet</p>
|
||||
<p>No Collections Yet</p>
|
||||
<p className="collection-empty-state-subtitle">Collections help you organize your requests. Create your first one to save this request.</p>
|
||||
<Button
|
||||
type="button"
|
||||
color="primary"
|
||||
variant="outline"
|
||||
icon={<IconFolder size={16} strokeWidth={1.5} />}
|
||||
onClick={handleShowNewCollection}
|
||||
className="mt-4"
|
||||
>
|
||||
New collection
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
@@ -748,7 +758,7 @@ const SaveTransientRequest = ({ item: itemProp, collection: collectionProp, isOp
|
||||
New Folder
|
||||
</Button>
|
||||
)}
|
||||
{isSelectingCollection && !newCollection.show && (
|
||||
{isSelectingCollection && !newCollection.show && availableCollections.length > 0 && (
|
||||
<Button
|
||||
type="button"
|
||||
color="primary"
|
||||
|
||||
Reference in New Issue
Block a user