Skip to content

Commit

Permalink
AB#19926
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefwint committed Sep 23, 2024
1 parent 25194e4 commit b72890d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,16 @@ const ObjectRevision = ({
htmlFrom={contentFrom || ''}
htmlTo={contentTo || ''}
customTitle={
singular === 'beleidskeuze' ||
singular === 'maatregel'
singular === 'beleidskeuze'
? {
Description:
'Wat wil de provincie bereiken?',
}
: singular === 'maatregel'
? {
Description:
'Wat gaat de provincie doen?',
}
: undefined
}
{...field}
Expand Down
2 changes: 1 addition & 1 deletion src/config/objects/maatregel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const maatregel: DynamicObject<
fields: [
{
name: 'Description',
label: 'Wat wil de provincie bereiken?',
label: 'Wat gaat de provincie doen?',
description:
'Formuleer bondig wat de provincie met deze maatregel wil bewerkstelligen.',
type: 'wysiwyg',
Expand Down
8 changes: 6 additions & 2 deletions src/pages/public/DynamicObject/DynamicObject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,16 @@ const DynamicObject = ({ model, isRevision }: DynamicObjectProps) => {
<ObjectContent
data={data || {}}
customTitle={
singular === 'beleidskeuze' ||
singular === 'maatregel'
singular === 'beleidskeuze'
? {
Description:
'Wat wil de provincie bereiken?',
}
: singular === 'maatregel'
? {
Description:
'Wat gaat de provincie doen?',
}
: undefined
}
/>
Expand Down

0 comments on commit b72890d

Please sign in to comment.