You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ENG-1641] Draft registration save before exit (#1655)
- Ticket: [ENG-1641]
## Purpose
- Let users know they have unsaved changes before they exit the draft registration workflow
- Let users know when an autosave is in progress
## Summary of Changes
- Change some of the links on the Draft Registration Metadata page to open in a new tab to prevent users from navigating away
- Add a new `{{before-unload}}` modifier
- Add logic to show popup if the draft has pending changes
- One to handle `onBeforeUnload` (closing or refreshing the browser window)
- One to handle route transitions (clicking the "Add new"/"My Registrations" buttons or navigating away within the app)
- Add same logic for edit-revision workflow
- Update rightnav template to show when an autosave is in progress
0 commit comments