mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-22 07:53:34 +01:00
feat: nudge users how to disable ssl cert vaidation
This commit is contained in:
parent
2e38300a67
commit
1f0bde4a12
@ -23,6 +23,10 @@ const StyledWrapper = styled.div`
|
||||
color: ${(props) => props.theme.colors.text.yellow};
|
||||
}
|
||||
}
|
||||
|
||||
.muted {
|
||||
color: ${(props) => props.theme.colors.text.muted};
|
||||
}
|
||||
`;
|
||||
|
||||
export default StyledWrapper;
|
||||
|
@ -85,7 +85,16 @@ const QueryResult = ({ item, collection, data, dataBuffer, width, disableRunEven
|
||||
{tabs}
|
||||
</div>
|
||||
{error ? (
|
||||
<span className="text-red-500">{error}</span>
|
||||
<div>
|
||||
<div className="text-red-500">{error}</div>
|
||||
|
||||
{error && typeof error === 'string' && error.toLowerCase().includes('self signed certificate') ? (
|
||||
<div className="mt-6 muted text-xs">
|
||||
You can disable SSL verification in the Preferences. <br />
|
||||
To open the Preferences, click on the gear icon in the bottom left corner.
|
||||
</div>
|
||||
) : null}
|
||||
</div>
|
||||
) : (
|
||||
<QueryResultPreview
|
||||
previewTab={previewTab}
|
||||
|
Loading…
Reference in New Issue
Block a user