feat: nudge users how to disable ssl cert vaidation

This commit is contained in:
Anoop M D 2023-10-26 00:12:38 +05:30
parent 2e38300a67
commit 1f0bde4a12
2 changed files with 14 additions and 1 deletions

View File

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

View File

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