traccar / traccar-web

Traccar GPS Tracking System
https://www.traccar.org
Apache License 2.0
793 stars 1.1k forks source link

Possible to create unnamed geofence in modern app #1102

Closed gustavofcalmeida closed 8 months ago

gustavofcalmeida commented 1 year ago

Describe the bug One can easily create geofences with no name that cause trouble to link to devices.

To Reproduce Steps to reproduce the behavior:

  1. finish your polygon
  2. leave the name field blank
  3. press cancel

OR

  1. finish your polygon
  2. type a name
  3. press cancel

Expected behavior By hitting cancel, the creation should be aborted. Instead you get a fence without name, no matter you type a name or not.

Screenshots 001

Desktop (please complete the following information):

Additional context The no name fence means trouble when you try to list fences to link to a device, because the emptiness of name makes the height of the item very small. 002

tananaev commented 1 year ago

I think one easy solution is to assign a default name, like "New Geofence" or something like that.