Skip to content

Recheck checkboxes on the users assigned to set page after cancelling unassign from all. - #3250

Open
drgrice1 wants to merge 1 commit into
openwebwork:developfrom
drgrice1:usersassigned-to-set-unassign-recheck
Open

drgrice1 wants to merge 1 commit into
openwebwork:developfrom
drgrice1:usersassigned-to-set-unassign-recheck

Conversation

@drgrice1

Copy link
Copy Markdown
Member

Pull request #3233 made it so that all checkboxes are unchecked when the "Unassign from All Users" button is used, and then the modal dialog asking for confirmation of the unassign is shown. However, if you then cancel that dialog (by clicking "Cancel", clicking anywhere outside of the dialog, clicking the close button in the dialog, or pressing the Esc key), then all of those checkboxes remain unchecked. That is not ideal. This makes it so that the status of each checkbox is put back to its state before the "Unassign from All Users" button was pressed.

Also replace the forEach usage with for of loops.

… unassign from all.

Pull request openwebwork#3233 made it so that all checkboxes are unchecked when the
"Unassign from All Users" button is used, and then the modal dialog
asking for confirmation of the unassign is shown.  However, if you then
cancel that dialog (by clicking "Cancel", clicking anywhere outside of
the dialog, clicking the close button in the dialog, or pressing the Esc
key), then all of those checkboxes remain unchecked.  That is not ideal.
This makes it so that the status of each checkbox is put back to its
state before the "Unassign from All Users" button was pressed.

Also replace the `forEach` usage with `for of` loops.

@somiaj somiaj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

This returns to the state before the Unassign from All button is clicked. Would it be worth also having a reset button to return to the original state?

@drgrice1

Copy link
Copy Markdown
Member Author

That would be another possibility. I thought of that too, but I think this is the more important of the two. I could add that I suppose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants