mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-09 06:55:03 +00:00
feat: Red status indicator for script errors in Request, Collection, and Folder Script tabs (#7035)
This commit is contained in:
@@ -82,11 +82,15 @@ const Script = ({ item, collection }) => {
|
||||
<TabsList>
|
||||
<TabsTrigger value="pre-request">
|
||||
Pre Request
|
||||
{hasPreRequestScript && <StatusDot />}
|
||||
{hasPreRequestScript && (
|
||||
<StatusDot type={item.preRequestScriptErrorMessage ? 'error' : 'default'} />
|
||||
)}
|
||||
</TabsTrigger>
|
||||
<TabsTrigger value="post-response">
|
||||
Post Response
|
||||
{hasPostResponseScript && <StatusDot />}
|
||||
{hasPostResponseScript && (
|
||||
<StatusDot type={item.postResponseScriptErrorMessage ? 'error' : 'default'} />
|
||||
)}
|
||||
</TabsTrigger>
|
||||
</TabsList>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user