feat: Red status indicator for script errors in Request, Collection, and Folder Script tabs (#7035)

This commit is contained in:
Pragadesh-45
2026-02-04 15:54:43 +05:30
committed by GitHub
parent cdc3cb3bdf
commit ce01c69395
3 changed files with 28 additions and 6 deletions

View File

@@ -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>