diff options
Diffstat (limited to 'modern/src/settings')
-rw-r--r-- | modern/src/settings/ComputedAttributePage.js | 2 | ||||
-rw-r--r-- | modern/src/settings/MaintenancePage.js | 1 | ||||
-rw-r--r-- | modern/src/settings/PreferencesPage.js | 7 | ||||
-rw-r--r-- | modern/src/settings/ServerPage.js | 4 | ||||
-rw-r--r-- | modern/src/settings/UserPage.js | 4 | ||||
-rw-r--r-- | modern/src/settings/components/AddAttributeDialog.js | 1 |
6 files changed, 18 insertions, 1 deletions
diff --git a/modern/src/settings/ComputedAttributePage.js b/modern/src/settings/ComputedAttributePage.js index 28b0f41e..ba5fe712 100644 --- a/modern/src/settings/ComputedAttributePage.js +++ b/modern/src/settings/ComputedAttributePage.js @@ -77,6 +77,7 @@ const ComputedAttributePage = () => { <FormControl margin="normal" fullWidth> <InputLabel>{t('sharedAttribute')}</InputLabel> <Select + label={t('sharedAttribute')} value={item.attribute || ''} onChange={handleChange} > @@ -100,6 +101,7 @@ const ComputedAttributePage = () => { > <InputLabel>{t('sharedType')}</InputLabel> <Select + label={t('sharedType')} value={item.type || ''} onChange={(event) => setItem({ ...item, type: event.target.value })} > diff --git a/modern/src/settings/MaintenancePage.js b/modern/src/settings/MaintenancePage.js index 67448fb7..5694d77b 100644 --- a/modern/src/settings/MaintenancePage.js +++ b/modern/src/settings/MaintenancePage.js @@ -133,6 +133,7 @@ const MaintenancePage = () => { <FormControl margin="normal" fullWidth> <InputLabel>{t('sharedType')}</InputLabel> <Select + label={t('sharedType')} value={item.type || ''} onChange={onMaintenanceTypeChange} > diff --git a/modern/src/settings/PreferencesPage.js b/modern/src/settings/PreferencesPage.js index 7c0d4aee..93ded1f0 100644 --- a/modern/src/settings/PreferencesPage.js +++ b/modern/src/settings/PreferencesPage.js @@ -55,7 +55,11 @@ const PreferencesPage = () => { <AccordionDetails className={classes.details}> <FormControl fullWidth> <InputLabel>{t('loginLanguage')}</InputLabel> - <Select value={language} onChange={(e) => setLanguage(e.target.value)}> + <Select + label={t('loginLanguage')} + value={language} + onChange={(e) => setLanguage(e.target.value)} + > {languageList.map((it) => <MenuItem key={it.code} value={it.code}>{it.name}</MenuItem>)} </Select> </FormControl> @@ -71,6 +75,7 @@ const PreferencesPage = () => { <FormControl fullWidth> <InputLabel>{t('sharedAttributes')}</InputLabel> <Select + label={t('sharedAttributes')} value={positionItems} onChange={(e) => setPositionItems(e.target.value)} renderValue={(it) => it.length} diff --git a/modern/src/settings/ServerPage.js b/modern/src/settings/ServerPage.js index 8432e657..80353deb 100644 --- a/modern/src/settings/ServerPage.js +++ b/modern/src/settings/ServerPage.js @@ -114,6 +114,7 @@ const ServerPage = () => { <FormControl margin="normal" fullWidth> <InputLabel>{t('settingsCoordinateFormat')}</InputLabel> <Select + label={t('settingsCoordinateFormat')} value={item.coordinateFormat || 'dd'} onChange={(event) => setItem({ ...item, coordinateFormat: event.target.value })} > @@ -125,6 +126,7 @@ const ServerPage = () => { <FormControl margin="normal" fullWidth> <InputLabel>{t('settingsSpeedUnit')}</InputLabel> <Select + label={t('settingsSpeedUnit')} value={item.attributes.speedUnit || 'kn'} onChange={(e) => setItem({ ...item, attributes: { ...item.attributes, speedUnit: e.target.value } })} > @@ -136,6 +138,7 @@ const ServerPage = () => { <FormControl margin="normal" fullWidth> <InputLabel>{t('settingsDistanceUnit')}</InputLabel> <Select + label={t('settingsDistanceUnit')} value={item.attributes.distanceUnit || 'km'} onChange={(e) => setItem({ ...item, attributes: { ...item.attributes, distanceUnit: e.target.value } })} > @@ -147,6 +150,7 @@ const ServerPage = () => { <FormControl margin="normal" fullWidth> <InputLabel>{t('settingsVolumeUnit')}</InputLabel> <Select + label={t('settingsVolumeUnit')} value={item.attributes.volumeUnit || 'ltr'} onChange={(e) => setItem({ ...item, attributes: { ...item.attributes, volumeUnit: e.target.value } })} > diff --git a/modern/src/settings/UserPage.js b/modern/src/settings/UserPage.js index 48769557..d9238c22 100644 --- a/modern/src/settings/UserPage.js +++ b/modern/src/settings/UserPage.js @@ -139,6 +139,7 @@ const UserPage = () => { <FormControl margin="normal" fullWidth> <InputLabel>{t('settingsCoordinateFormat')}</InputLabel> <Select + label={t('settingsCoordinateFormat')} value={item.coordinateFormat || 'dd'} onChange={(event) => setItem({ ...item, coordinateFormat: event.target.value })} > @@ -150,6 +151,7 @@ const UserPage = () => { <FormControl margin="normal" fullWidth> <InputLabel>{t('settingsSpeedUnit')}</InputLabel> <Select + label={t('settingsSpeedUnit')} value={(item.attributes && item.attributes.speedUnit) || 'kn'} onChange={(e) => setItem({ ...item, attributes: { ...item.attributes, speedUnit: e.target.value } })} > @@ -161,6 +163,7 @@ const UserPage = () => { <FormControl margin="normal" fullWidth> <InputLabel>{t('settingsDistanceUnit')}</InputLabel> <Select + label={t('settingsDistanceUnit')} value={(item.attributes && item.attributes.distanceUnit) || 'km'} onChange={(e) => setItem({ ...item, attributes: { ...item.attributes, distanceUnit: e.target.value } })} > @@ -172,6 +175,7 @@ const UserPage = () => { <FormControl margin="normal" fullWidth> <InputLabel>{t('settingsVolumeUnit')}</InputLabel> <Select + label={t('settingsVolumeUnit')} value={(item.attributes && item.attributes.volumeUnit) || 'ltr'} onChange={(e) => setItem({ ...item, attributes: { ...item.attributes, volumeUnit: e.target.value } })} > diff --git a/modern/src/settings/components/AddAttributeDialog.js b/modern/src/settings/components/AddAttributeDialog.js index 150fc008..de5d22b7 100644 --- a/modern/src/settings/components/AddAttributeDialog.js +++ b/modern/src/settings/components/AddAttributeDialog.js @@ -58,6 +58,7 @@ const AddAttributeDialog = ({ open, onResult, definitions }) => { > <InputLabel>{t('sharedType')}</InputLabel> <Select + label={t('sharedType')} value={type} onChange={(e) => setType(e.target.value)} > |