Skip to content

Commit 6f37599

Browse files
authored
Merge pull request #1166 from opencrvs/declaring-poc
Make birth VALIDATE and REGISTER actions only available if record is not waiting for approval of late registration
2 parents 0fc50a9 + 20a28e6 commit 6f37599

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/form/v2/birth/index.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ export const birthEvent = defineConfig({
271271
'This is shown as the action name anywhere the user can trigger the action from',
272272
id: 'event.birth.action.validate.label'
273273
},
274+
conditionals: [
275+
{
276+
type: ConditionalType.ENABLE,
277+
conditional: not(flag('approval-required-for-late-registration'))
278+
}
279+
],
274280
deduplication: {
275281
id: 'birth-deduplication',
276282
label: {
@@ -290,6 +296,12 @@ export const birthEvent = defineConfig({
290296
'This is shown as the action name anywhere the user can trigger the action from',
291297
id: 'event.birth.action.register.label'
292298
},
299+
conditionals: [
300+
{
301+
type: ConditionalType.ENABLE,
302+
conditional: not(flag('approval-required-for-late-registration'))
303+
}
304+
],
293305
deduplication: {
294306
id: 'birth-deduplication',
295307
label: {

src/translations/client.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,6 +2261,7 @@ verifyCertificate.successTitle,title for success alert,Valid QR code,Code QR val
22612261
verifyCertificate.successUrl,title for success alert for url validation,URL Verification,Vérification des URL
22622262
verifyCertificate.timeOut,message when time out after few minute,You been timed out,Délais expirée
22632263
verifyCertificate.toastMessage,Message for the toast when time spend 1 minute,"After verifying the certificate, please close the browser window","Après avoir vérifié le certificat, veuillez fermer la fenêtre du navigateur."
2264+
actions.notify,Notify action label,Notify,Notifier
22642265
views.idReader.label.manualInput,Label that shows below the divider on the id reader component,Complete fields below,Remplissez les champs ci-dessous
22652266
views.idReader.label.or,Label that shows on the divider,Or,Ou
22662267
views.idVerification.banner.actions.reset,,Reset,Réinitialiser

0 commit comments

Comments
 (0)