Skip to content

Commit

Permalink
feat: Add hiding of rubric when option is set [PT-188018267]
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmartin committed Aug 2, 2024
1 parent cc1d1a6 commit 40e9f00
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/components/report/feedback-panel-for-student.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ export default class FeedbackPanelForStudent extends PureComponent {

render() {
const { textFeedback, score, rubric, rubricFeedback, hasBeenReviewed } = this.props;

if (rubric && rubric.hideRubricFromStudentsInStudentReport) {
return null;
}

const hasFeedback = textFeedback || score || rubricFeedback;
const showFeedback = (hasFeedback && hasBeenReviewed);

Expand Down

0 comments on commit 40e9f00

Please sign in to comment.