-
Notifications
You must be signed in to change notification settings - Fork 12
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
[TASK]: Only display "Report an error" on Open datasets #456
Conversation
@Alexandra-Green is this PR dealing with just 1348? seems like there are commits from two different people in there. |
@aimalkhan it's because it's going into main instead of develop. Can we change the default for merges to go into develop? |
That will require changing the Default branch setting, which causes issues like the branch shown on front page or cloned by default to also change |
…to DATA-1348 Edits made so Report an Error banner only appears when the dataset is Open.
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.
Looks good!
* Displays report an error form only when there are resources * <Should only show Report an Error message if the resource is Open> * Checks if both the resouce and package are Open to post the Report an Error banner * Changed the line so it checks the dataset's access level
What this PR accomplishes
"Report an error with this data" banner only appears when the dataset is Open
Issue(s) addressed
DATA-1348
What needs review
If the dataset is Open, the banner is at the bottom of the page.
If the dataset is either Under Review or Restricted, the banner does not appear.