mirror of
https://github.com/usebruno/bruno.git
synced 2025-02-18 02:30:58 +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};
|
color: ${(props) => props.theme.colors.text.yellow};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.muted {
|
||||||
|
color: ${(props) => props.theme.colors.text.muted};
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default StyledWrapper;
|
export default StyledWrapper;
|
||||||
|
@ -85,7 +85,16 @@ const QueryResult = ({ item, collection, data, dataBuffer, width, disableRunEven
|
|||||||
{tabs}
|
{tabs}
|
||||||
</div>
|
</div>
|
||||||
{error ? (
|
{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
|
<QueryResultPreview
|
||||||
previewTab={previewTab}
|
previewTab={previewTab}
|
||||||
|
Loading…
Reference in New Issue
Block a user