REST API webUI option #191

This commit is contained in:
Alexey Kasyanchuk
2023-06-05 05:34:48 +03:00
parent fad7c338c9
commit af7100ff37
5 changed files with 18 additions and 4 deletions

View File

@ -216,6 +216,16 @@ export default class ConfigPage extends Page {
}}
/>
<Toggle
style={{marginTop: '10px'}}
label={__('REST API support')}
toggled={this.options.restApi}
onToggle={(e, checked) => {
this.options.restApi = checked
this.forceUpdate()
}}
/>
</div>
</Tab>
<Tab value='p2p' label={__("P2P settings")} icon={<SvgIcon viewBox="0 0 47 47">