Final resolve of duplication
that is why PR reviews are nice
This commit is contained in:
parent
1b66cd246d
commit
6a386ed465
@ -280,15 +280,11 @@ export const buildingAttributesConfig = valueType<DataFieldConfig>()({ /* eslint
|
||||
derivedEdit: true,
|
||||
verify: false
|
||||
},
|
||||
community_activities: {
|
||||
edit: true,
|
||||
verify: false
|
||||
},
|
||||
community_activities_current: {
|
||||
edit: true,
|
||||
verify: false
|
||||
},
|
||||
community_activities_past: {
|
||||
community_activities: {
|
||||
edit: true,
|
||||
verify: false
|
||||
},
|
||||
|
@ -92,10 +92,10 @@ const CommunityView: React.FunctionComponent<CategoryViewProps> = (props) => {
|
||||
mode={props.mode}
|
||||
/>
|
||||
<LogicalDataEntry
|
||||
slug='community_activities_past'
|
||||
title={dataFields.community_activities_past.title}
|
||||
tooltip={dataFields.community_activities_past.tooltip}
|
||||
value={props.building.community_activities_past}
|
||||
slug='community_activities'
|
||||
title={dataFields.community_activities.title}
|
||||
tooltip={dataFields.community_activities.tooltip}
|
||||
value={props.building.community_activities}
|
||||
|
||||
onChange={props.onChange}
|
||||
mode={props.mode}
|
||||
|
@ -515,21 +515,15 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
||||
example: 100,
|
||||
},
|
||||
|
||||
community_activities: {
|
||||
category: Category.Community,
|
||||
title: "Has this ever been used for community activities in the past?",
|
||||
tooltip: "E.g. youth club, place of worship, GP surgery, pub",
|
||||
example: true
|
||||
},
|
||||
community_activities_current: {
|
||||
category: Category.Community,
|
||||
title: "Are activities open to the community currently taking place in the building?",
|
||||
tooltip: "E.g. youth club, place of worship, GP surgery, pub",
|
||||
example: true
|
||||
},
|
||||
community_activities_past: {
|
||||
community_activities: {
|
||||
category: Category.Community,
|
||||
title: "Has the building been used in the past for community activities?",
|
||||
title: "Has this ever been used for community activities in the past?",
|
||||
tooltip: "E.g. youth club, place of worship, GP surgery, pub",
|
||||
example: true
|
||||
},
|
||||
|
@ -1,8 +1,5 @@
|
||||
ALTER TABLE buildings
|
||||
DROP COLUMN IF EXISTS community_activities_current;
|
||||
|
||||
ALTER TABLE buildings
|
||||
DROP COLUMN IF EXISTS community_activities_past;
|
||||
|
||||
ALTER TABLE buildings
|
||||
DROP COLUMN IF EXISTS community_activities_always;
|
||||
|
@ -1,8 +1,5 @@
|
||||
ALTER TABLE buildings
|
||||
ADD COLUMN community_activities_current BOOLEAN NULL;
|
||||
|
||||
ALTER TABLE buildings
|
||||
ADD COLUMN community_activities_past BOOLEAN NULL;
|
||||
|
||||
ALTER TABLE buildings
|
||||
ADD COLUMN community_activities_always BOOLEAN NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user