diff options
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/UserPage.js | 23 | ||||
-rw-r--r-- | modern/src/admin/ServerPage.js | 14 |
2 files changed, 37 insertions, 0 deletions
diff --git a/modern/src/UserPage.js b/modern/src/UserPage.js index ec19dd63..895dac43 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 6f0d0734..502efa4c 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')} |