From 50cecf36bbbad7489efa99d9fad1be69df23331f Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Thu, 29 Sep 2022 14:40:06 +0200 Subject: [PATCH] add conservation area id --- app/src/api/config/dataFields.ts | 16 ++++++++++++++++ .../building/data-containers/planning.tsx | 19 ++++++++++++++----- app/src/frontend/config/data-fields-config.ts | 6 ++++++ ...3.redesign_protection_designation.down.sql | 3 ++- ...033.redesign_protection_designation.up.sql | 2 ++ 5 files changed, 40 insertions(+), 6 deletions(-) diff --git a/app/src/api/config/dataFields.ts b/app/src/api/config/dataFields.ts index 553a736d..beb71f96 100644 --- a/app/src/api/config/dataFields.ts +++ b/app/src/api/config/dataFields.ts @@ -169,6 +169,22 @@ export const buildingAttributesConfig = valueType()({ /* eslint edit: true, verify: true, }, + work_on_site_is_completed: { + edit: true, + verify: true, + }, + work_on_site_is_completed_on_year: { + edit: true, + verify: true, + }, + planning_planning_application_id_crowdsourced: { + edit: true, + verify: true, + }, + planning_in_conservation_area_id: { + edit: true, + verify: true, + }, planning_in_conservation_area_url: { edit: true, verify: true, diff --git a/app/src/frontend/building/data-containers/planning.tsx b/app/src/frontend/building/data-containers/planning.tsx index 76005b22..0cf61360 100644 --- a/app/src/frontend/building/data-containers/planning.tsx +++ b/app/src/frontend/building/data-containers/planning.tsx @@ -91,14 +91,13 @@ const PlanningView: React.FunctionComponent = (props) => ( = (props) => ( user_verified_as={props.user_verified.planning_in_conservation_area_url} verified_count={props.building.verified.planning_in_conservation_area_url} /> +