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
Show error in targets when user is not associated with the configured place #7346
Comments
I think |
@dianabarsan Agree. All we need is to display th message instead of blank page. Though for this case, @jonathanbataire suggested that "Branch users( |
The target-aggregates page is controlled by a permission |
Ah! You are right. When the aggregate permission is enabled for restricted user, we have the right UI, so we just have to fix |
This is ready for AT in this PR |
Looks good. |
Ticket: #7346 This commit adds a message for when an user doesn't have targets in the view.
Merged to main branch. |
Important: This is a public repository. Anyone in the world can see what's posted here. If you are posting screenshots or log files, please carefully examine them for the presence of any kind of protected health information (PHI). Images or logs containing PHI must be posted in fully-redacted form, with no visible PHI.
Describe the bug
The target page shows blank when the user is not associated with
health_center
.To Reproduce
Steps to reproduce the behavior:
health-center
place, like a branchExpected behavior
There should be a clear message displayed on the page.
Logs
None
Screenshots
Environment
Additional context
In one of the latest PRs, there has been a
context: 'user.parent.type === "health_center"'
line added to targets. So, the issue shows after that commit.The text was updated successfully, but these errors were encountered: