aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-04 18:26:26 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-04 18:26:26 -0700
commiteb8d026e884c83e93163a2d13dd5cbcd88ada869 (patch)
tree9e24f58ba9cc60cca0c5d3f83d16d34ef21272b2 /modern/src
parent7f2ed6a7e12d3cc34f29685128245143967ebb8a (diff)
downloadetbsa-traccar-web-eb8d026e884c83e93163a2d13dd5cbcd88ada869.tar.gz
etbsa-traccar-web-eb8d026e884c83e93163a2d13dd5cbcd88ada869.tar.bz2
etbsa-traccar-web-eb8d026e884c83e93163a2d13dd5cbcd88ada869.zip
User and server preferences
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/UserPage.js23
-rw-r--r--modern/src/admin/ServerPage.js14
2 files changed, 37 insertions, 0 deletions
diff --git a/modern/src/UserPage.js b/modern/src/UserPage.js
index ec19dd6..895dac4 100644
--- a/modern/src/UserPage.js
+++ b/modern/src/UserPage.js
@@ -63,6 +63,29 @@ const UserPage = () => {
<Accordion>
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
<Typography variant="subtitle1">
+ {t('sharedPreferences')}
+ </Typography>
+ </AccordionSummary>
+ <AccordionDetails className={classes.details}>
+ <TextField
+ margin="normal"
+ value={item.phone || ''}
+ onChange={(event) => setItem({ ...item, phone: event.target.value })}
+ label={t('sharedPhone')}
+ variant="filled"
+ />
+ <TextField
+ margin="normal"
+ value={item.poiLayer || ''}
+ onChange={(event) => setItem({ ...item, poiLayer: event.target.value })}
+ label={t('mapPoiLayer')}
+ variant="filled"
+ />
+ </AccordionDetails>
+ </Accordion>
+ <Accordion>
+ <AccordionSummary expandIcon={<ExpandMoreIcon />}>
+ <Typography variant="subtitle1">
{t('sharedAttributes')}
</Typography>
</AccordionSummary>
diff --git a/modern/src/admin/ServerPage.js b/modern/src/admin/ServerPage.js
index 6f0d073..502efa4 100644
--- a/modern/src/admin/ServerPage.js
+++ b/modern/src/admin/ServerPage.js
@@ -68,6 +68,20 @@ const ServerPage = () => {
<AccordionDetails className={classes.details}>
<TextField
margin="normal"
+ value={item.mapUrl || ''}
+ onChange={(event) => setItem({ ...item, mapUrl: event.target.value })}
+ label={t('mapCustomLabel')}
+ variant="filled"
+ />
+ <TextField
+ margin="normal"
+ value={item.poiLayer || ''}
+ onChange={(event) => setItem({ ...item, poiLayer: event.target.value })}
+ label={t('mapPoiLayer')}
+ variant="filled"
+ />
+ <TextField
+ margin="normal"
value={item.announcement || ''}
onChange={(event) => setItem({ ...item, announcement: event.target.value })}
label={t('serverAnnouncement')}