Disable location free-text field editing
This commit is contained in:
parent
3a0c852088
commit
5001ab7426
@ -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',
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user