Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(signature-collection): sc fixes 16.10 #16428

Merged
merged 5 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -277,17 +277,17 @@ export const Draft: Form = buildForm({
doesNotRequireAnswer: true,
title: '',
items: ({ answers }) => {
return (answers.constituency as string[]).map((c: string) => ({
heading:
getValueViaPath(answers, 'list.name') +
' - ' +
c.split('|')[1],
progressMeter: {
currentProgress: 0,
maxProgress: 350,
withLabel: true,
},
}))
return (answers.constituency as string[]).map(
(constituency: string) => ({
heading: constituency.split('|')[1],
eyebrow: getValueViaPath(answers, 'list.name'),
progressMeter: {
currentProgress: 0,
maxProgress: 350,
withLabel: true,
},
}),
)
},
}),
buildSubmitField({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ export const Prerequisites: Form = buildForm({
title: m.constituency,
children: [],
}),
buildSection({
id: 'screen5',
title: m.managersAndSupervisors,
children: [],
}),
buildSection({
id: 'screen6',
title: m.overview,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,51 +169,6 @@ export const m = defineMessages({
description: '',
},

/* Ábyrgðaraðilar */
managersAndSupervisors: {
id: 'plc.application:managersAndSupervisors',
defaultMessage: 'Ábyrgðar-/umsjónaraðilar',
description: '',
},
managersAndSupervisorsTitle: {
id: 'plc.application:managersAndSupervisorsTitle',
defaultMessage: 'Veljið ábyrgðar- og umsjónaraðila',
description: '',
},
managers: {
id: 'plc.application:managers',
defaultMessage: 'Ábyrgðaraðilar',
description: '',
},
managersDescription: {
id: 'plc.application:managersDescription',
defaultMessage:
'Ábyrgðaraðili hefur aðgang að söfnunum í öllum kjördæmum og getur bætt við og eytt umsjónaraðilum. Ábyrgðaraðili getur slegið inn kennitölur meðmælenda af blaði í viðeigandi kjördæmum.',
description: '',
},
addManager: {
id: 'plc.application:addManager',
defaultMessage: 'Bæta við ábyrgðaraðila',
description: '',
},

/* Umsjónaraðilar */
supervisors: {
id: 'plc.application:supervisors',
defaultMessage: 'Umsjónaraðilar',
description: '',
},
supervisorsDescription: {
id: 'plc.application:supervisorsDescription',
defaultMessage:
'Umsjónaraðili sér aðeins þau kjördæmi sem honum hefur verið úthlutað og getur slegið inn kennitölur meðmælenda af blaði í þeim kjördæmum.',
description: '',
},
addSupervisor: {
id: 'plc.application:addSupervisor',
defaultMessage: 'Bæta við umsjónaraðila',
description: '',
},

/* Yfirlit */
overview: {
Expand Down
1 change: 1 addition & 0 deletions libs/application/types/src/lib/Fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ export type ActionCardListField = BaseField & {
export type ApplicationActionCardProps = Modify<
ActionCardProps,
{
eyebrow?: string
heading?: FormText
text?: FormText
tag?: Modify<ActionCardProps['tag'], { label: FormText }>
Expand Down
Loading