diff options
author | Anton Tananaev <anton@traccar.org> | 2023-11-26 17:08:05 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-11-26 17:08:05 -0800 |
commit | e9524aa3968c44627bfc559898f11b88a5e76ef4 (patch) | |
tree | f274342b19aff02fb46a02b9f422fc227936d9f0 /modern | |
parent | 828e13ae5d8ed330a28199cd18db6664f091605d (diff) | |
download | trackermap-web-e9524aa3968c44627bfc559898f11b88a5e76ef4.tar.gz trackermap-web-e9524aa3968c44627bfc559898f11b88a5e76ef4.tar.bz2 trackermap-web-e9524aa3968c44627bfc559898f11b88a5e76ef4.zip |
Default geofence name (fix #1102)
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/common/components/StatusCard.jsx | 2 | ||||
-rw-r--r-- | modern/src/other/GeofencesPage.jsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/common/components/StatusCard.jsx b/modern/src/common/components/StatusCard.jsx index fcd62a41..b4660d61 100644 --- a/modern/src/common/components/StatusCard.jsx +++ b/modern/src/common/components/StatusCard.jsx @@ -149,7 +149,7 @@ const StatusCard = ({ deviceId, position, onClose, disableActions, desktopPaddin const handleGeofence = useCatchCallback(async () => { const newItem = { - name: '', + name: t('sharedGeofence'), area: `CIRCLE (${position.latitude} ${position.longitude}, 50)`, }; const response = await fetch('/api/geofences', { diff --git a/modern/src/other/GeofencesPage.jsx b/modern/src/other/GeofencesPage.jsx index 4f31c1b3..a27a6dca 100644 --- a/modern/src/other/GeofencesPage.jsx +++ b/modern/src/other/GeofencesPage.jsx @@ -78,7 +78,7 @@ const GeofencesPage = () => { .map((point) => `${point.getAttribute('lat')} ${point.getAttribute('lon')}`) .join(', '); const area = `LINESTRING (${coordinates})`; - const newItem = { name: '', area }; + const newItem = { name: t('sharedGeofence'), area }; try { const response = await fetch('/api/geofences', { method: 'POST', |