/
The behavior of "Cancel" button during editing [5.3.0-B1]
The behavior of "Cancel" button during editing [5.3.0-B1]
When editing a record in Admin Console the toolbar in popup/modal window shows typical actions that can be done with it:
Here is what each button does:
- Save - saves the changes to the database
- Cancel - closes the window with/without (asks user about it) saving changes first
- Reset - reverts values in form fields to their initial state
Here is how current confirmation dialog, that is opened after Cancel button pressing, looks like:
The confusing part about this is that if user presses "Cancel" (means that he doesn't want to save changes yet) the window will close and he will loose all made changes.
Solution
- change text in the dialog from "Do you want to save the changes?" to the "Do you want to discard the changes?"
- when OK button is pressed close window without saving the changes
- when Cancel button is pressed just close the dialog and leave window open