add more verification buttons
This commit is contained in:
parent
c7ff672e3b
commit
7ac1ab66a8
@ -78,9 +78,11 @@ export const buildingAttributesConfig = valueType<DataFieldConfig>()({ /* eslint
|
|||||||
},
|
},
|
||||||
location_latitude: {
|
location_latitude: {
|
||||||
edit: true,
|
edit: true,
|
||||||
|
verify: true,
|
||||||
},
|
},
|
||||||
location_longitude: {
|
location_longitude: {
|
||||||
edit: true,
|
edit: true,
|
||||||
|
verify: true,
|
||||||
},
|
},
|
||||||
date_year: {
|
date_year: {
|
||||||
edit: true,
|
edit: true,
|
||||||
|
@ -147,6 +147,14 @@ const LocationView: React.FunctionComponent<CategoryViewProps> = (props) => (
|
|||||||
placeholder="Latitude, e.g. 51.5467"
|
placeholder="Latitude, e.g. 51.5467"
|
||||||
onChange={props.onChange}
|
onChange={props.onChange}
|
||||||
/>
|
/>
|
||||||
|
<Verification
|
||||||
|
slug="location_latitude"
|
||||||
|
allow_verify={props.user !== undefined && props.building.location_latitude !== null && !props.edited}
|
||||||
|
onVerify={props.onVerify}
|
||||||
|
user_verified={props.user_verified.hasOwnProperty("location_latitude")}
|
||||||
|
user_verified_as={props.user_verified.location_latitude}
|
||||||
|
verified_count={props.building.verified.location_latitude}
|
||||||
|
/>
|
||||||
<NumericDataEntry
|
<NumericDataEntry
|
||||||
title={dataFields.location_longitude.title}
|
title={dataFields.location_longitude.title}
|
||||||
slug="location_longitude"
|
slug="location_longitude"
|
||||||
@ -159,6 +167,14 @@ const LocationView: React.FunctionComponent<CategoryViewProps> = (props) => (
|
|||||||
placeholder="Longitude, e.g. -0.0586"
|
placeholder="Longitude, e.g. -0.0586"
|
||||||
onChange={props.onChange}
|
onChange={props.onChange}
|
||||||
/>
|
/>
|
||||||
|
<Verification
|
||||||
|
slug="location_longitude"
|
||||||
|
allow_verify={props.user !== undefined && props.building.location_longitude !== null && !props.edited}
|
||||||
|
onVerify={props.onVerify}
|
||||||
|
user_verified={props.user_verified.hasOwnProperty("location_longitude")}
|
||||||
|
user_verified_as={props.user_verified.location_longitude}
|
||||||
|
verified_count={props.building.verified.location_longitude}
|
||||||
|
/>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
const LocationContainer = withCopyEdit(LocationView);
|
const LocationContainer = withCopyEdit(LocationView);
|
||||||
|
Loading…
Reference in New Issue
Block a user