Bug fix: Reset "Notify users by email" check box to initial state.
This is a bug fix for #15392.
This PR introduced a setting to determine the initial state of the "Notify users by email" checkbox on the bulk enrollment page. The setting works fine when the page is first loaded. However, after submitting a batch the JS code resets the state of the check boxes, and does not reflect the new setting when doing so.
*JIRA tickets*: TBD
*Sandbox URL*: TBD - sandbox is being provisioned.
*Merge deadline*: None
On the devstack, add the `BATCH_ENROLLMENT_NOTIFY_USERS_DEFAULT` feature flag to the `FEATURES` dictionary in `lms.env.json`:
Log in as the staff user, navigate to the "Membership" tab in the instructor dashboard on some course and notice that the status of the "Notify users by email" check box matches the setting. Then click the "Enroll" button and notice that the state of the check box is reverted to its original state.
*Author notes and concerns*:
1. I don't understand why the JS code needs to reset the state of the check boxes after a batch has been sent. In most cases, users won't want to submit a second batch, and if they do, I can't see why it should be more likely that they want to use the original state of the check boxes rather than the state they used for the previous batch. However, since someone wrote code to reset the state I assume there is some reason to do so and modified the code accordingly.
1. My first attempt was to pass the `BATCH_ENROLLMENT_NOTIFY_USERS_DEFAULT` setting from the Python code via the HTML template to the JS code. However, this became cumbersome quickly, so I chose to deduce the value of that setting from the initial state of the check box.
[ ] @bdero
[ ] edX reviewer[s] TBD