fix: dot on unused proxy settings

This commit is contained in:
Jose Bolivar Ibz
2025-07-22 11:51:02 -07:00
parent 803e974dbb
commit 325b573da9

View File

@@ -44,6 +44,7 @@ const CollectionSettings = ({ collection }) => {
const authMode = get(collection, 'root.request.auth', {}).mode || 'none';
const proxyConfig = get(collection, 'brunoConfig.proxy', {});
let proxyEnabled = proxyConfig.hostname ? true : false;
const clientCertConfig = get(collection, 'brunoConfig.clientCertificates.certs', []);
@@ -162,7 +163,7 @@ const CollectionSettings = ({ collection }) => {
</div>
<div className={getTabClassname('proxy')} role="tab" onClick={() => setTab('proxy')}>
Proxy
{Object.keys(proxyConfig).length > 0 && <StatusDot />}
{Object.keys(proxyConfig).length > 0 && proxyEnabled && <StatusDot />}
</div>
<div className={getTabClassname('clientCert')} role="tab" onClick={() => setTab('clientCert')}>
Client Certificates