aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/UserPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-23 09:00:08 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-23 09:00:08 -0700
commit7db8b3f293b8fcbab86a13b2af4e9fee5fd937e1 (patch)
tree893861c605696516c1c4c3d06179ace6376f2765 /modern/src/settings/UserPage.js
parentb98137ab304e8068484926eb31b77bd727a6407d (diff)
downloadtrackermap-web-7db8b3f293b8fcbab86a13b2af4e9fee5fd937e1.tar.gz
trackermap-web-7db8b3f293b8fcbab86a13b2af4e9fee5fd937e1.tar.bz2
trackermap-web-7db8b3f293b8fcbab86a13b2af4e9fee5fd937e1.zip
Fix select field labels
Diffstat (limited to 'modern/src/settings/UserPage.js')
-rw-r--r--modern/src/settings/UserPage.js4
1 files changed, 4 insertions, 0 deletions
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 } })}
>