aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-06 11:25:15 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-06 11:25:15 -0700
commit1b513d2cbf4dde335f9a2822beaaeeb171816c8d (patch)
tree30a40f887c15bf0793a9b2eadefd544b7fe783f2 /modern
parent644a598fb76d23a042a69a45806623ccb9fb79de (diff)
downloadtrackermap-web-1b513d2cbf4dde335f9a2822beaaeeb171816c8d.tar.gz
trackermap-web-1b513d2cbf4dde335f9a2822beaaeeb171816c8d.tar.bz2
trackermap-web-1b513d2cbf4dde335f9a2822beaaeeb171816c8d.zip
Add missing server properties
Diffstat (limited to 'modern')
-rw-r--r--modern/src/admin/ServerPage.js49
1 files changed, 48 insertions, 1 deletions
diff --git a/modern/src/admin/ServerPage.js b/modern/src/admin/ServerPage.js
index 502efa4c..5e608dee 100644
--- a/modern/src/admin/ServerPage.js
+++ b/modern/src/admin/ServerPage.js
@@ -2,7 +2,7 @@ import React from 'react';
import TextField from '@material-ui/core/TextField';
import {
- Accordion, AccordionSummary, AccordionDetails, makeStyles, Typography, Button, FormControl, Container, Checkbox, FormControlLabel,
+ Accordion, AccordionSummary, AccordionDetails, makeStyles, Typography, Button, FormControl, Container, Checkbox, FormControlLabel, InputLabel, Select, MenuItem,
} from '@material-ui/core';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import { useHistory } from 'react-router-dom';
@@ -75,6 +75,41 @@ const ServerPage = () => {
/>
<TextField
margin="normal"
+ type="number"
+ value={item.latitude || 0}
+ onChange={(event) => setItem({ ...item, latitude: Number(event.target.value) })}
+ label={t('positionLatitude')}
+ variant="filled"
+ />
+ <TextField
+ margin="normal"
+ type="number"
+ value={item.longitude || 0}
+ onChange={(event) => setItem({ ...item, longitude: Number(event.target.value) })}
+ label={t('positionLongitude')}
+ variant="filled"
+ />
+ <TextField
+ margin="normal"
+ type="number"
+ value={item.zoom || 0}
+ onChange={(event) => setItem({ ...item, zoom: Number(event.target.value) })}
+ label={t('serverZoom')}
+ variant="filled"
+ />
+ <FormControl variant="filled" margin="normal" fullWidth>
+ <InputLabel>{t('settingsCoordinateFormat')}</InputLabel>
+ <Select
+ value={item.coordinateFormat || 'dd'}
+ onChange={(event) => setItem({ ...item, coordinateFormat: event.target.value })}
+ >
+ <MenuItem value="dd">{t('sharedDecimalDegrees')}</MenuItem>
+ <MenuItem value="ddm">{t('sharedDegreesDecimalMinutes')}</MenuItem>
+ <MenuItem value="dms">{t('sharedDegreesMinutesSeconds')}</MenuItem>
+ </Select>
+ </FormControl>
+ <TextField
+ margin="normal"
value={item.poiLayer || ''}
onChange={(event) => setItem({ ...item, poiLayer: event.target.value })}
label={t('mapPoiLayer')}
@@ -87,6 +122,14 @@ const ServerPage = () => {
label={t('serverAnnouncement')}
variant="filled"
/>
+ <FormControlLabel
+ control={<Checkbox checked={item.twelveHourFormat} onChange={(event) => setItem({ ...item, twelveHourFormat: event.target.checked })} />}
+ label={t('settingsTwelveHourFormat')}
+ />
+ <FormControlLabel
+ control={<Checkbox checked={item.forceSettings} onChange={(event) => setItem({ ...item, forceSettings: event.target.checked })} />}
+ label={t('serverForceSettings')}
+ />
</AccordionDetails>
</Accordion>
<Accordion>
@@ -112,6 +155,10 @@ const ServerPage = () => {
control={<Checkbox checked={item.limitCommands} onChange={(event) => setItem({ ...item, limitCommands: event.target.checked })} />}
label={t('userLimitCommands')}
/>
+ <FormControlLabel
+ control={<Checkbox checked={item.disableReports} onChange={(event) => setItem({ ...item, disableReports: event.target.checked })} />}
+ label={t('userDisableReports')}
+ />
</AccordionDetails>
</Accordion>
<Accordion>