From 1b513d2cbf4dde335f9a2822beaaeeb171816c8d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 6 May 2022 11:25:15 -0700 Subject: Add missing server properties --- modern/src/admin/ServerPage.js | 49 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) (limited to 'modern/src') 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'; @@ -73,6 +73,41 @@ const ServerPage = () => { label={t('mapCustomLabel')} variant="filled" /> + setItem({ ...item, latitude: Number(event.target.value) })} + label={t('positionLatitude')} + variant="filled" + /> + setItem({ ...item, longitude: Number(event.target.value) })} + label={t('positionLongitude')} + variant="filled" + /> + setItem({ ...item, zoom: Number(event.target.value) })} + label={t('serverZoom')} + variant="filled" + /> + + {t('settingsCoordinateFormat')} + + { label={t('serverAnnouncement')} variant="filled" /> + setItem({ ...item, twelveHourFormat: event.target.checked })} />} + label={t('settingsTwelveHourFormat')} + /> + setItem({ ...item, forceSettings: event.target.checked })} />} + label={t('serverForceSettings')} + /> @@ -112,6 +155,10 @@ const ServerPage = () => { control={ setItem({ ...item, limitCommands: event.target.checked })} />} label={t('userLimitCommands')} /> + setItem({ ...item, disableReports: event.target.checked })} />} + label={t('userDisableReports')} + /> -- cgit v1.2.3