diff options
Diffstat (limited to 'modern/src')
-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', |