@@ -75,7 +75,8 @@ const VIEW_MODE_GROUPED = 'grouped';
7575const VIEW_MODE_BEST = 'best' ;
7676const VIEW_MODE_LAST = 'last' ;
7777const VIEW_MODE_ACCEPTED = 'accepted' ;
78- const VIEW_MODE_REVIEWD = 'reviewed' ;
78+ const VIEW_MODE_REVIEWED = 'reviewed' ;
79+ const VIEW_MODE_REVIEW_REQUESTS = 'review-requests' ;
7980const VIEW_MODE_PLAGIARISM = 'plagiarism' ;
8081
8182const viewModes = {
@@ -94,9 +95,12 @@ const viewModes = {
9495 [ VIEW_MODE_ACCEPTED ] : (
9596 < FormattedMessage id = "app.assignmentSolutions.viewModes.accepted" defaultMessage = "Accepted solutions only" />
9697 ) ,
97- [ VIEW_MODE_REVIEWD ] : (
98+ [ VIEW_MODE_REVIEWED ] : (
9899 < FormattedMessage id = "app.assignmentSolutions.viewModes.reviewed" defaultMessage = "Reviewed solutions only" />
99100 ) ,
101+ [ VIEW_MODE_REVIEW_REQUESTS ] : (
102+ < FormattedMessage id = "app.assignmentSolutions.viewModes.reviewRequests" defaultMessage = "Review requests" />
103+ ) ,
100104 [ VIEW_MODE_PLAGIARISM ] : (
101105 < FormattedMessage id = "app.assignmentSolutions.viewModes.plagiarism" defaultMessage = "Only plagiarism suspects" />
102106 ) ,
@@ -117,7 +121,8 @@ const viewModeFilters = {
117121 [ VIEW_MODE_LAST ] : ( solution , _ , solutions ) =>
118122 solution && solution . attemptIndex === _getLastAttemptIndices ( solutions ) [ solution . authorId ] ,
119123 [ VIEW_MODE_ACCEPTED ] : solution => solution && solution . accepted ,
120- [ VIEW_MODE_REVIEWD ] : solution => solution && solution . review ,
124+ [ VIEW_MODE_REVIEWED ] : solution => solution && solution . review ,
125+ [ VIEW_MODE_REVIEW_REQUESTS ] : solution => solution && ! solution . review && solution . reviewRequest ,
121126 [ VIEW_MODE_PLAGIARISM ] : solution => solution && solution . plagiarism ,
122127} ;
123128
0 commit comments