This image shows the action chain to check if there are unsaved changes and to warn the user of any unsaved changes.