From 7ac1ab66a8ec1102d1baea5e3c2ae485d3322415 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 19 May 2022 12:58:54 +0100 Subject: [PATCH] add more verification buttons --- app/src/api/config/dataFields.ts | 2 ++ .../building/data-containers/location.tsx | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/app/src/api/config/dataFields.ts b/app/src/api/config/dataFields.ts index 1f9d09d4..6e442f39 100644 --- a/app/src/api/config/dataFields.ts +++ b/app/src/api/config/dataFields.ts @@ -78,9 +78,11 @@ export const buildingAttributesConfig = valueType()({ /* eslint }, location_latitude: { edit: true, + verify: true, }, location_longitude: { edit: true, + verify: true, }, date_year: { edit: true, diff --git a/app/src/frontend/building/data-containers/location.tsx b/app/src/frontend/building/data-containers/location.tsx index c908fc4a..d94011f9 100644 --- a/app/src/frontend/building/data-containers/location.tsx +++ b/app/src/frontend/building/data-containers/location.tsx @@ -147,6 +147,14 @@ const LocationView: React.FunctionComponent = (props) => ( placeholder="Latitude, e.g. 51.5467" onChange={props.onChange} /> + = (props) => ( placeholder="Longitude, e.g. -0.0586" onChange={props.onChange} /> + ); const LocationContainer = withCopyEdit(LocationView);