add veriification current_landuse_link

This commit is contained in:
Ed Chalstrey 2022-05-19 11:37:06 +01:00
parent 4c0a5d0475
commit 9febf6a21e
2 changed files with 9 additions and 0 deletions

View File

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

View File

@ -149,6 +149,14 @@ const UseView: React.FunctionComponent<CategoryViewProps> = (props) => {
placeholder="https://..." placeholder="https://..."
editableEntries={true} editableEntries={true}
/> />
<Verification
slug="current_landuse_link"
allow_verify={props.user !== undefined && props.building.current_landuse_link !== null && !props.edited}
onVerify={props.onVerify}
user_verified={props.user_verified.hasOwnProperty("current_landuse_link")}
user_verified_as={props.user_verified.current_landuse_link}
verified_count={props.building.verified.current_landuse_link}
/>
</Fragment> </Fragment>
); );
}; };