Refactor ConfirmDangerModal into ES module
- Converts
confirm_danger_modal
into a proper ES module - Converts
ConfirmDangerModal
into a function rather than a class - Removes
ConfirmDangerModal
global - Places event bindings for the modal directly into
pages/projects/edit/index.js
andpages/groups/edit/index.js
since these are the only places they are needed.
related: #38869 (moved)
Edited by Mike Greiling