canvas-lms/app/jsx/assignments
Shahbaz Javeed 6462f6ad12 disable Add Reviewer button when no students selected to moderate
closes CNVS-27402

When moderating an assignment, the Add Reviewer button is now
disabled when there aren't any students selected.  The button is
re-enabled as soon as at least one student is selected

test plan:
1. Create a course and add two students and a teacher to it
2. Create an assignment for this course and update it to indicate
   that it will be a moderated assignment
3. Go to the assignment and click on the "Moderate" button
4. You should see no students selected and the "Add Reviewer"
   should be disabled
5. Select a student by clicking on the checkbox next to their
   name
6. The "Add Reviewer" button should now be enabled
7. Deselect the student you selected
8. The "Add Reviewer" button should now be disabled again
9. Select all students by clicking on the checkbox in the headers
10.The "Add Reviewer" button should now be enabled again
11.Deselect all students by clicking on the same checkbox in the
   headers
12.The "Add Reviewer" button should now be disabled again

Change-Id: I4822c6d299e57d2a123739deb726e9a6224f2c63
Reviewed-on: https://gerrit.instructure.com/76518
Reviewed-by: Jeremy Neander <jneander@instructure.com>
Tested-by: Jenkins
Reviewed-by: Keith T. Garner <kgarner@instructure.com>
Reviewed-by: Derek Bender <djbender@instructure.com>
QA-Review: KC Naegle <knaegle@instructure.com>
Product-Review: Christi Wruck
2016-04-29 19:28:19 +00:00
..
actions Make moderated grading radio buttons only show when needed 2016-02-24 20:26:28 +00:00
reducers disable Add Reviewer button when no students selected to moderate 2016-04-29 19:28:19 +00:00
store Start using Babel to compile files in the JSX folder 2015-10-23 20:54:35 +00:00
FlashMessageHolder.jsx Start using Babel to compile files in the JSX folder 2015-10-23 20:54:35 +00:00
ModeratedColumnHeader.jsx Fix a11y issues with Moderated Grading 2015-12-08 16:54:47 +00:00
ModeratedStudentList.jsx add reviewers to students in multiple sections 2016-03-22 20:54:03 +00:00
ModerationApp.jsx disable Add Reviewer button when no students selected to moderate 2016-04-29 19:28:19 +00:00
ModerationHeader.jsx disable Add Reviewer button when no students selected to moderate 2016-04-29 19:28:19 +00:00
constants.jsx Start using Babel to compile files in the JSX folder 2015-10-23 20:54:35 +00:00