manual proxy cert install

This commit is contained in:
SpikeHD
2022-07-16 16:59:16 -07:00
parent 4b42d0f8b8
commit bb383c5c0a
2 changed files with 19 additions and 1 deletions

View File

@@ -188,6 +188,12 @@ export default class Options extends React.Component<IProps, IState> {
})
}
async installCert() {
await invoke('generate_ca_files', {
path: await dataDir() + 'cultivation'
})
}
render() {
return (
<Menu closeFn={this.props.closeFn} className="Options" heading="Options">
@@ -219,6 +225,16 @@ export default class Options extends React.Component<IProps, IState> {
</BigButton>
</div>
</div>
<div className='OptionSection' id="menuOptionsContainerInstallCert">
<div className='OptionLabel' id="menuOptionsLabelInstallCert">
<Tr text="options.install_certificate" />
</div>
<div className='OptionValue' id="menuOptionsButtonInstallCert">
<BigButton disabled={false} onClick={this.installCert} id="installCert">
<Tr text="components.install" />
</BigButton>
</div>
</div>
{
this.state.swag && (
<>