-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: [DHIS2-11836] respect block entry form #3759
feat: [DHIS2-11836] respect block entry form #3759
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @henrikmv,
Can you add a cypress test for this feature? You can use either First antenatal care visit or Second antenatal care visit from the WHO RMNCH program, both of which have blockEntryForm
set to true.
Thanks!
src/core_modules/capture-core/components/WidgetEventEdit/WidgetEventEdit.container.js
Outdated
Show resolved
Hide resolved
🚀 Deployed on https://deploy-preview-3759--dhis2-capture.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested successfully on 2.42,2.41.2 ,2.40.5,2.39.7 versions
# [101.3.0](v101.2.2...v101.3.0) (2024-08-28) ### Features * [DHIS2-11836] respect block entry form ([#3759](#3759)) ([ed3ed5a](ed3ed5a))
🎉 This PR is included in version 101.3.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
DHIS2-11836
Block the Edit event button when both of the bullet points are true:
1. The
blockEntryForm
setting is set to true for Program stage2. User role with tracker authorities
Uncomplete events
is not assigned to the user.Adds a Cypress test to validate that the
Edit event
button is disabled for users without authority.