Similar to other workflows where users are entering data, we want to add a warning to the import dialog.
- Use a beforeunload listener, to make the browser display a warning when clicking on cancel or closing the window.
- Set this listener whenever a model value changes in the form (see codex text input events)
Outcome