]> cat aescling's git repositories - mastodon.git/commit
Add confirmation modal when closing media edit modal with unsaved changes (#16518)
authorClaire <claire.github-309c@sitedethib.com>
Sat, 24 Jul 2021 23:14:43 +0000 (01:14 +0200)
committerGitHub <noreply@github.com>
Sat, 24 Jul 2021 23:14:43 +0000 (01:14 +0200)
commita8a7066e977cb0aa1988d340ef8b7c542f179b14
tree2fc564764da0933c19e68b22c0e83ed066f1720f
parentaf08229ff43cf61b6b3eb386ca9d6205d05dc295
Add confirmation modal when closing media edit modal with unsaved changes (#16518)

* Add confirmation modal when closing media edit modal with unsaved changes

* Move focal point media state to redux so it does not get erased by confirmation dialog

* Change upload modal behavior to keep it open while saving changes

Instead of closing it immediately and losing changes if they fail to save…

* Make it work with react-intl 2.9
app/javascript/mastodon/actions/compose.js
app/javascript/mastodon/features/compose/containers/upload_container.js
app/javascript/mastodon/features/ui/components/focal_point_modal.js
app/javascript/mastodon/features/ui/components/modal_root.js
app/javascript/mastodon/features/ui/containers/modal_container.js
app/javascript/mastodon/reducers/compose.js
app/javascript/mastodon/reducers/modal.js