Prevent admins from editing fields when there's an un-viewed draft.
Review Request #14037 — Created July 13, 2024 and submitted
Now that admins can make a choice about whether they want to view an
unpublished draft or not, we need to be more careful about when they
make edits. This change makes it so if the admin attempts to make a
change to the review request when a user draft exists, we'll block the
edit and prompt them to load the draft first.
- Attempted to edit review request fields, file attachment
captions/state, and add new attachments/diffs as an admin while
viewing a review request with an unpublished draft, but not viewing
the draft. Saw the expected prompt. - Edited review request fields, file attachment captions/state, and
added new attachments/diffs as both the owner and an admin while
viewing the current draft.
Summary | ID |
---|---|
8509c9d396f82378c4700605595a24dc19c39b1d |
- Commits:
-
Summary ID 9d7f46ccb9baed2865d733cf6ff189b0a04a9795 8509c9d396f82378c4700605595a24dc19c39b1d - Diff:
-
Revision 2 (+366 -62)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.