Fix jwt-token

This commit is contained in:
2025-09-07 16:54:49 +02:00
parent 312a769cdb
commit 3a4fdb9295

View File

@@ -663,40 +663,28 @@ const DeviceModal = ({ device, onClose, onSave }) => {
<div className="grid grid-cols-2 gap-4"> <div className="grid grid-cols-2 gap-4">
<div> <div>
<label className="block text-sm font-medium text-gray-700 mb-1"> <label className="block text-sm font-medium text-gray-700 mb-1">
Latitude {device && <span className="text-xs text-gray-500">(read-only)</span>} Latitude
</label> </label>
<input <input
type="number" type="number"
step="any" step="any"
name="geo_lat" name="geo_lat"
className={`w-full border border-gray-300 rounded-md px-3 py-2 ${ className="w-full border border-gray-300 rounded-md px-3 py-2 focus:ring-primary-500 focus:border-primary-500"
device
? 'bg-gray-100 cursor-not-allowed'
: 'focus:ring-primary-500 focus:border-primary-500'
}`}
value={formData.geo_lat} value={formData.geo_lat}
onChange={handleChange} onChange={handleChange}
disabled={!!device}
readOnly={!!device}
/> />
</div> </div>
<div> <div>
<label className="block text-sm font-medium text-gray-700 mb-1"> <label className="block text-sm font-medium text-gray-700 mb-1">
Longitude {device && <span className="text-xs text-gray-500">(read-only)</span>} Longitude
</label> </label>
<input <input
type="number" type="number"
step="any" step="any"
name="geo_lon" name="geo_lon"
className={`w-full border border-gray-300 rounded-md px-3 py-2 ${ className="w-full border border-gray-300 rounded-md px-3 py-2 focus:ring-primary-500 focus:border-primary-500"
device
? 'bg-gray-100 cursor-not-allowed'
: 'focus:ring-primary-500 focus:border-primary-500'
}`}
value={formData.geo_lon} value={formData.geo_lon}
onChange={handleChange} onChange={handleChange}
disabled={!!device}
readOnly={!!device}
/> />
</div> </div>
</div> </div>