aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/GeofencePage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-26 07:09:39 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-26 07:09:39 -0700
commit5f7a71c53255e9103530d4489bdaad44efe5a0e8 (patch)
treec75bcfa69bd7a8224e45f7a04c9bb76c8804f539 /modern/src/settings/GeofencePage.js
parent468ed8b75c45b3d713449ced8466bab22227cb9f (diff)
downloadtrackermap-web-5f7a71c53255e9103530d4489bdaad44efe5a0e8.tar.gz
trackermap-web-5f7a71c53255e9103530d4489bdaad44efe5a0e8.tar.bz2
trackermap-web-5f7a71c53255e9103530d4489bdaad44efe5a0e8.zip
Fix missing fields
Diffstat (limited to 'modern/src/settings/GeofencePage.js')
-rw-r--r--modern/src/settings/GeofencePage.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/modern/src/settings/GeofencePage.js b/modern/src/settings/GeofencePage.js
index f372adb6..d7d1c50c 100644
--- a/modern/src/settings/GeofencePage.js
+++ b/modern/src/settings/GeofencePage.js
@@ -11,6 +11,7 @@ import EditAttributesView from './components/EditAttributesView';
import { useTranslation } from '../common/components/LocalizationProvider';
import useGeofenceAttributes from '../common/attributes/useGeofenceAttributes';
import SettingsMenu from './components/SettingsMenu';
+import SelectField from '../common/components/SelectField';
const useStyles = makeStyles((theme) => ({
details: {
@@ -59,6 +60,26 @@ const GeofencePage = () => {
<Accordion>
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
<Typography variant="subtitle1">
+ {t('sharedExtra')}
+ </Typography>
+ </AccordionSummary>
+ <AccordionDetails className={classes.details}>
+ <TextField
+ value={item.description || ''}
+ onChange={(event) => setItem({ ...item, description: event.target.value })}
+ label={t('sharedDescription')}
+ />
+ <SelectField
+ value={item.calendarId || 0}
+ onChange={(event) => setItem({ ...item, calendarId: Number(event.target.value) })}
+ endpoint="/api/calendars"
+ label={t('sharedCalendar')}
+ />
+ </AccordionDetails>
+ </Accordion>
+ <Accordion>
+ <AccordionSummary expandIcon={<ExpandMoreIcon />}>
+ <Typography variant="subtitle1">
{t('sharedAttributes')}
</Typography>
</AccordionSummary>