verify current_landuse_source

This commit is contained in:
Ed Chalstrey 2022-05-19 11:18:17 +01:00
parent 71b09c72f2
commit bf8800930d
2 changed files with 9 additions and 0 deletions

View File

@ -262,6 +262,7 @@ export const buildingAttributesConfig = valueType<DataFieldConfig>()({ /* eslint
},
current_landuse_source: {
edit: true,
verify: true,
},
current_landuse_source_detail: {
edit: true,

View File

@ -69,6 +69,14 @@ const UseView: React.FunctionComponent<CategoryViewProps> = (props) => {
placeholder={dataFields.date_source.example}
options={dataFields.current_landuse_source.items}
/>
<Verification
slug="current_landuse_source"
allow_verify={props.user !== undefined && props.building.current_landuse_source !== null && !props.edited}
onVerify={props.onVerify}
user_verified={props.user_verified.hasOwnProperty("current_landuse_source")}
user_verified_as={props.user_verified.current_landuse_source && props.user_verified.current_landuse_source.join(", ")}
verified_count={props.building.verified.current_landuse_source}
/>
</Fragment>
);
};