Disable location free-text field editing

This commit is contained in:
Maciej Ziarkowski 2021-01-15 18:40:24 +00:00
parent 3a0c852088
commit 5001ab7426
2 changed files with 9 additions and 5 deletions

View File

@ -347,12 +347,12 @@ async function expireBuildingTileCache(buildingId: number) {
const BUILDING_FIELD_WHITELIST = new Set([
'ref_osm_id',
'location_name',
// 'location_name',
'location_number',
'location_street',
'location_line_two',
'location_town',
'location_postcode',
// 'location_street',
// 'location_line_two',
// 'location_town',
// 'location_postcode',
'location_latitude',
'location_longitude',
'date_year',

View File

@ -22,6 +22,7 @@ const LocationView: React.FunctionComponent<CategoryViewProps> = (props) => (
onChange={props.onChange}
tooltip={dataFields.location_name.tooltip}
placeholder="Building name (if any)"
disabled={true}
/>
<Verification
slug="location_name"
@ -58,6 +59,7 @@ const LocationView: React.FunctionComponent<CategoryViewProps> = (props) => (
mode={props.mode}
copy={props.copy}
onChange={props.onChange}
disabled={true}
/>
<Verification
slug="location_street"
@ -84,6 +86,7 @@ const LocationView: React.FunctionComponent<CategoryViewProps> = (props) => (
mode={props.mode}
copy={props.copy}
onChange={props.onChange}
disabled={true}
/>
<DataEntry
title={dataFields.location_postcode.title}
@ -94,6 +97,7 @@ const LocationView: React.FunctionComponent<CategoryViewProps> = (props) => (
onChange={props.onChange}
maxLength={8}
valueTransform={x=>x.toUpperCase()}
disabled={true}
/>
<DataEntry
title={dataFields.ref_toid.title}