Merge pull request 'Drones to AGL' (#9) from drones-agl into main
Reviewed-on: #9
This commit was merged in pull request #9.
This commit is contained in:
@@ -62,8 +62,8 @@ const frzGeoJsonEndpoint = `${pprApiBase}/drone-requests/frz`;
|
||||
</div>
|
||||
|
||||
<div class="drone-field">
|
||||
<label for="max-elevation">Maximum Elevation, feet AMSL <span aria-hidden="true">*</span></label>
|
||||
<input type="number" id="max-elevation" name="maximum_elevation_ft_amsl" min="0" step="1" inputmode="numeric" required />
|
||||
<label for="max-elevation">Max height above ground in feet <span aria-hidden="true">*</span></label>
|
||||
<input type="number" id="max-elevation" name="maximum_elevation_ft_agl" min="0" step="1" inputmode="numeric" required />
|
||||
</div>
|
||||
|
||||
<div class="drone-field drone-full">
|
||||
@@ -407,7 +407,7 @@ const frzGeoJsonEndpoint = `${pprApiBase}/drone-requests/frz`;
|
||||
if (!fieldValue) return;
|
||||
const normalizedValue = key === 'operator_id' || key === 'flyer_id' ? fieldValue.toUpperCase() : fieldValue;
|
||||
|
||||
if (key === 'maximum_elevation_ft_amsl') {
|
||||
if (key === 'maximum_elevation_ft_agl') {
|
||||
data[key] = Number.parseInt(normalizedValue, 10);
|
||||
} else if (key === 'location_latitude' || key === 'location_longitude') {
|
||||
data[key] = Number.parseFloat(normalizedValue);
|
||||
|
||||
Reference in New Issue
Block a user