diff --git a/app/src/api/config/dataFields.ts b/app/src/api/config/dataFields.ts index 0cf01a03..c780eb04 100644 --- a/app/src/api/config/dataFields.ts +++ b/app/src/api/config/dataFields.ts @@ -134,6 +134,14 @@ export const buildingAttributesConfig = valueType()({ /* eslint edit: true, verify: true, }, + date_source_type: { + edit: true, + verify: true, + }, + date_source_links: { + edit: true, + verify: true, + }, facade_year: { edit: true, verify: true, diff --git a/app/src/frontend/building/data-containers/age-history.tsx b/app/src/frontend/building/data-containers/age-history.tsx index 3d0c4cb7..47d2459e 100644 --- a/app/src/frontend/building/data-containers/age-history.tsx +++ b/app/src/frontend/building/data-containers/age-history.tsx @@ -103,6 +103,7 @@ const AgeView: React.FunctionComponent = (props) => { user_verified_as={props.user_verified.facade_year} verified_count={props.building.verified.facade_year} /> +
= (props) => { /> } - + + {(props.building.date_source_type == dataFields.date_source_type.items[0] || + props.building.date_source_type == dataFields.date_source_type.items[1] || + props.building.date_source_type == null) ? <> : + <> + + + } + {/* + />*/}