diff options
| author | olekstomek <olekstomek@gmail.com> | 2021-08-08 18:26:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-08 09:26:48 -0700 |
| commit | ade8bc7d68922543ab74ee2d41920de139fd0bd3 (patch) | |
| tree | 9a3b0857a97187110fbf1b2f446bf4394a5803f5 /src/components | |
| parent | df6d62c397992aef26c3abb26ad667bcbc7184ad (diff) | |
Support Hidden WiFi networks (#101)
* ability to set that WiFi network is hidden
* fix: hide password checbox hidden chebox with hidden SSID option
* improvement, delete constant
* merge master
* add a setting - the WiFi network can have a hidden SSID
* update translation for English and Polish language
* change one line translation in Eng, add semicolon in format to connect to WiFi
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Settings.js | 5 | ||||
| -rw-r--r-- | src/components/WifiCard.js | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/components/Settings.js b/src/components/Settings.js index f25bc12..1e07cb1 100644 --- a/src/components/Settings.js +++ b/src/components/Settings.js | |||
| @@ -49,6 +49,11 @@ export const Settings = (props) => { | |||
| 49 | props.onHidePasswordChange(!props.settings.hidePassword) | 49 | props.onHidePasswordChange(!props.settings.hidePassword) |
| 50 | } | 50 | } |
| 51 | /> | 51 | /> |
| 52 | <Checkbox | ||
| 53 | label={t('wifi.name.hiddenSSID')} | ||
| 54 | checked={props.settings.hiddenSSID} | ||
| 55 | onChange={() => props.onHiddenSSIDChange(!props.settings.hiddenSSID)} | ||
| 56 | /> | ||
| 52 | <RadioGroup | 57 | <RadioGroup |
| 53 | label={t('wifi.password.encryption')} | 58 | label={t('wifi.password.encryption')} |
| 54 | size={16} | 59 | size={16} |
diff --git a/src/components/WifiCard.js b/src/components/WifiCard.js index 6f99fd7..8e0e128 100644 --- a/src/components/WifiCard.js +++ b/src/components/WifiCard.js | |||
| @@ -38,7 +38,7 @@ export const WifiCard = (props) => { | |||
| 38 | ? '' | 38 | ? '' |
| 39 | : escape(props.settings.password); | 39 | : escape(props.settings.password); |
| 40 | setQrvalue( | 40 | setQrvalue( |
| 41 | `WIFI:T:${props.settings.encryptionMode};S:${ssid};P:${password};;` | 41 | `WIFI:T:${props.settings.encryptionMode};S:${ssid};P:${password};H:${props.settings.hiddenSSID};` |
| 42 | ); | 42 | ); |
| 43 | }, [props.settings]); | 43 | }, [props.settings]); |
| 44 | 44 | ||
