add new feature to make wifi ap invisible

This commit is contained in:
2021-01-03 17:08:05 +01:00
parent 72095dbe3e
commit 910797adaf
6 changed files with 24 additions and 4 deletions

View File

@ -3,8 +3,9 @@ import { TextValidator, ValidatorForm, SelectValidator } from 'react-material-ui
import MenuItem from '@material-ui/core/MenuItem';
import SaveIcon from '@material-ui/icons/Save';
import Checkbox from '@material-ui/core/Checkbox';
import { PasswordValidator, RestFormProps, FormActions, FormButton } from '../components';
import {PasswordValidator, RestFormProps, FormActions, FormButton, BlockFormControlLabel} from '../components';
import { isAPEnabled } from './APModes';
import { APSettings, APProvisionMode } from './types';
@ -91,6 +92,16 @@ class APSettingsForm extends React.Component<APSettingsFormProps> {
onChange={handleValueChange('subnet_mask')}
margin="normal"
/>
<BlockFormControlLabel
control={
<Checkbox
value="network_visible"
checked={data.network_visible}
onChange={handleValueChange("network_visible")}
/>
}
label="Network visible?"
/>
</Fragment>
}
<FormActions>

View File

@ -24,4 +24,5 @@ export interface APSettings {
local_ip: string;
gateway_ip: string;
subnet_mask: string;
network_visible: boolean;
}