verify community_public_ownership_sources

This commit is contained in:
Ed Chalstrey 2022-05-19 13:14:08 +01:00
parent 18bcb68965
commit df9766aebb
2 changed files with 9 additions and 1 deletions

View File

@ -316,7 +316,7 @@ export const buildingAttributesConfig = valueType<DataFieldConfig>()({ /* eslint
},
community_public_ownership_sources: {
edit: true,
verify: false
verify: true
}
});

View File

@ -155,6 +155,14 @@ const CommunityView: React.FunctionComponent<CategoryViewProps> = (props) => {
onChange={props.onChange}
mode={props.mode}
/>
<Verification
slug="community_public_ownership_sources"
allow_verify={props.user !== undefined && props.building.community_public_ownership_sources !== null && !props.edited}
onVerify={props.onVerify}
user_verified={props.user_verified.hasOwnProperty("community_public_ownership_sources")}
user_verified_as={props.user_verified.community_public_ownership_sources}
verified_count={props.building.verified.community_public_ownership_sources}
/>
</>
};
const CommunityContainer = withCopyEdit(CommunityView);