aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Settings.js
diff options
context:
space:
mode:
authorJan Tatje <jan@jnt.io>2022-08-12 21:08:59 +0200
committerGitHub <noreply@github.com>2022-08-12 12:08:59 -0700
commit7c5346cbabfb9b7057506e0775faa7f74fd31157 (patch)
treedaa1032ee1528e70f1b0322c5f3974a738633b21 /src/components/Settings.js
parenteba3c1a6629e832db1da713825043d162bec9d28 (diff)
Add support for EAP-PWD (#246)
I also added a German translation of the new strings.
Diffstat (limited to 'src/components/Settings.js')
-rw-r--r--src/components/Settings.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/components/Settings.js b/src/components/Settings.js
index f12fe35..a0dbab5 100644
--- a/src/components/Settings.js
+++ b/src/components/Settings.js
@@ -10,9 +10,10 @@ export const Settings = (props) => {
10 const encryptionModes = [ 10 const encryptionModes = [
11 { label: t('wifi.password.encryption.none'), value: '' }, 11 { label: t('wifi.password.encryption.none'), value: '' },
12 { label: 'WPA/WPA2/WPA3', value: 'WPA' }, 12 { label: 'WPA/WPA2/WPA3', value: 'WPA' },
13 { label: 'WPA2-EAP', value: 'WPA2-EAP' },
13 { label: 'WEP', value: 'WEP' }, 14 { label: 'WEP', value: 'WEP' },
14 ]; 15 ];
15 16 const eapMethods = [{ label: 'PWD', value: 'PWD' }];
16 const langSelectDefaultValue = () => { 17 const langSelectDefaultValue = () => {
17 const t = Translations.filter((t) => t.id === i18n.language); 18 const t = Translations.filter((t) => t.id === i18n.language);
18 if (t.length !== 1) { 19 if (t.length !== 1) {
@@ -68,6 +69,16 @@ export const Settings = (props) => {
68 options={encryptionModes} 69 options={encryptionModes}
69 onChange={(e) => props.onEncryptionModeChange(e.target.value)} 70 onChange={(e) => props.onEncryptionModeChange(e.target.value)}
70 /> 71 />
72 <RadioGroup
73 label={t('wifi.encryption.eapMethod')}
74 size={16}
75 value={props.settings.eapMethod}
76 options={eapMethods}
77 className={`
78 ${props.settings.encryptionMode !== 'WPA2-EAP' && 'hidden'}
79 `}
80 onChange={(e) => props.onEapMethodChange(e.target.value)}
81 />
71 </Pane> 82 </Pane>
72 ); 83 );
73}; 84};