diff options
author | Anton Tananaev <anton@traccar.org> | 2022-12-19 17:28:20 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-12-19 17:28:20 -0800 |
commit | a5ae8c6cee71e56818bdcc67e5bf929cc07fe01d (patch) | |
tree | 3b88dae75b0d7f26fc8fff2a7fe8dfae7ce0f7ab /modern/src/settings/PreferencesPage.js | |
parent | 877108d9012301f2b149ae862af4cffe17dfb20d (diff) | |
download | trackermap-web-a5ae8c6cee71e56818bdcc67e5bf929cc07fe01d.tar.gz trackermap-web-a5ae8c6cee71e56818bdcc67e5bf929cc07fe01d.tar.bz2 trackermap-web-a5ae8c6cee71e56818bdcc67e5bf929cc07fe01d.zip |
Configurable device direction
Diffstat (limited to 'modern/src/settings/PreferencesPage.js')
-rw-r--r-- | modern/src/settings/PreferencesPage.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modern/src/settings/PreferencesPage.js b/modern/src/settings/PreferencesPage.js index e939732a..fcf34739 100644 --- a/modern/src/settings/PreferencesPage.js +++ b/modern/src/settings/PreferencesPage.js @@ -244,6 +244,18 @@ const PreferencesPage = () => { <MenuItem value="all">{t('notificationAlways')}</MenuItem> </Select> </FormControl> + <FormControl> + <InputLabel>{t('mapDirection')}</InputLabel> + <Select + label={t('mapDirection')} + value={attributes.mapDirection || 'selected'} + onChange={(e) => setAttributes({ ...attributes, mapDirection: e.target.value })} + > + <MenuItem value="none">{t('sharedDisabled')}</MenuItem> + <MenuItem value="selected">{t('deviceSelected')}</MenuItem> + <MenuItem value="all">{t('notificationAlways')}</MenuItem> + </Select> + </FormControl> <FormGroup> <FormControlLabel control={( |