File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,11 @@ const CertificateWhitelistList = styled.div`
122
122
const WhitelistHost = styled . div `
123
123
min-width: 300px;
124
124
font-family: ${ p => p . theme . monoFontFamily } ;
125
+
126
+ ${ ( p : { active : boolean } ) => ! p . active && css `
127
+ font-style: italic;
128
+ opacity: 0.6;
129
+ ` }
125
130
` ;
126
131
127
132
const ProxyPortsContainer = styled . div `
@@ -406,7 +411,10 @@ class SettingsPage extends React.Component<SettingsPageProps> {
406
411
</ ContentLabel >
407
412
< CertificateWhitelistList >
408
413
{ whitelistedCertificateHosts . map ( ( host ) => [
409
- < WhitelistHost key = { `host-${ host } ` } > { host } </ WhitelistHost > ,
414
+ < WhitelistHost
415
+ active = { initiallyWhitelistedCertificateHosts . includes ( host ) }
416
+ key = { `host-${ host } ` }
417
+ > { host } </ WhitelistHost > ,
410
418
< SettingsButton
411
419
key = { `delete-${ host } ` }
412
420
onClick = { ( ) => this . unwhitelistHost ( host ) }
You can’t perform that action at this time.
0 commit comments