From b59e811412a93e0325994cce2aee2435ee7faa0d Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 6 Jun 2022 14:20:27 +0100 Subject: [PATCH] change to has_extension bool --- app/src/api/config/dataFields.ts | 2 +- .../frontend/building/data-containers/team.tsx | 15 ++++++++------- app/src/frontend/config/data-fields-config.ts | 10 +++------- migrations/029.team.up.sql | 1 + 4 files changed, 13 insertions(+), 15 deletions(-) diff --git a/app/src/api/config/dataFields.ts b/app/src/api/config/dataFields.ts index f89b3d3e..d9816cfd 100644 --- a/app/src/api/config/dataFields.ts +++ b/app/src/api/config/dataFields.ts @@ -325,7 +325,7 @@ export const buildingAttributesConfig = valueType()({ /* eslint }, is_extension: { edit: true, - verify: false + verify: true }, extension_year: { edit: true, diff --git a/app/src/frontend/building/data-containers/team.tsx b/app/src/frontend/building/data-containers/team.tsx index 17b086c5..1d2b5984 100644 --- a/app/src/frontend/building/data-containers/team.tsx +++ b/app/src/frontend/building/data-containers/team.tsx @@ -6,6 +6,7 @@ import NumericDataEntry from '../data-components/numeric-data-entry'; import Verification from '../data-components/verification'; import { MultiDataEntry } from '../data-components/multi-data-entry/multi-data-entry'; import { LogicalDataEntry } from '../data-components/logical-data-entry/logical-data-entry'; +import { DataEntryGroup } from '../data-components/data-entry-group'; import withCopyEdit from '../data-container'; @@ -22,17 +23,17 @@ const TeamView: React.FunctionComponent = (props) => {
- {props.building.is_extension == "The main building" ? ( + {props.building.has_extension == "The main building" ? ( <>