add verification buttons construction
This commit is contained in:
parent
7ac1ab66a8
commit
3ba9d0b5ef
@ -151,12 +151,14 @@ export const buildingAttributesConfig = valueType<DataFieldConfig>()({ /* eslint
|
|||||||
},
|
},
|
||||||
construction_core_material: {
|
construction_core_material: {
|
||||||
edit: true,
|
edit: true,
|
||||||
|
verify: true,
|
||||||
},
|
},
|
||||||
construction_secondary_materials: {
|
construction_secondary_materials: {
|
||||||
edit: false,
|
edit: false,
|
||||||
},
|
},
|
||||||
construction_roof_covering: {
|
construction_roof_covering: {
|
||||||
edit: true,
|
edit: true,
|
||||||
|
verify: true,
|
||||||
},
|
},
|
||||||
planning_portal_link: {
|
planning_portal_link: {
|
||||||
edit: true,
|
edit: true,
|
||||||
|
@ -45,6 +45,14 @@ const ConstructionView: React.FunctionComponent<CategoryViewProps> = (props) =>
|
|||||||
copy={props.copy}
|
copy={props.copy}
|
||||||
onChange={props.onChange}
|
onChange={props.onChange}
|
||||||
/>
|
/>
|
||||||
|
<Verification
|
||||||
|
slug="construction_core_material"
|
||||||
|
allow_verify={props.user !== undefined && props.building.construction_core_material !== null && !props.edited}
|
||||||
|
onVerify={props.onVerify}
|
||||||
|
user_verified={props.user_verified.hasOwnProperty("construction_core_material")}
|
||||||
|
user_verified_as={props.user_verified.construction_core_material}
|
||||||
|
verified_count={props.building.verified.construction_core_material}
|
||||||
|
/>
|
||||||
<SelectDataEntry
|
<SelectDataEntry
|
||||||
title={dataFields.construction_secondary_materials.title}
|
title={dataFields.construction_secondary_materials.title}
|
||||||
disabled={true}
|
disabled={true}
|
||||||
@ -66,6 +74,14 @@ const ConstructionView: React.FunctionComponent<CategoryViewProps> = (props) =>
|
|||||||
copy={props.copy}
|
copy={props.copy}
|
||||||
onChange={props.onChange}
|
onChange={props.onChange}
|
||||||
/>
|
/>
|
||||||
|
<Verification
|
||||||
|
slug="construction_roof_covering"
|
||||||
|
allow_verify={props.user !== undefined && props.building.construction_roof_covering !== null && !props.edited}
|
||||||
|
onVerify={props.onVerify}
|
||||||
|
user_verified={props.user_verified.hasOwnProperty("construction_roof_covering")}
|
||||||
|
user_verified_as={props.user_verified.construction_roof_covering}
|
||||||
|
verified_count={props.building.verified.construction_roof_covering}
|
||||||
|
/>
|
||||||
<DataEntry
|
<DataEntry
|
||||||
title="Construction system type"
|
title="Construction system type"
|
||||||
slug=""
|
slug=""
|
||||||
|
Loading…
Reference in New Issue
Block a user