diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-07-25 01:14:43 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-07-25 12:59:03 +0200 |
commit | 34a573ac27fe9d5fb324d8910759cd2233911646 (patch) | |
tree | 85f33e297d5ad25d06568a0ce14aa80ee09b06e7 /app/javascript/flavours/glitch/features/compose | |
parent | 08139d3cd72f28b7c4199f1123ab149651800f2c (diff) |
[Glitch] Add confirmation modal when closing media edit modal with unsaved changes
Port a8a7066e977cb0aa1988d340ef8b7c542f179b14 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/features/compose')
-rw-r--r-- | app/javascript/flavours/glitch/features/compose/containers/upload_container.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/containers/upload_container.js b/app/javascript/flavours/glitch/features/compose/containers/upload_container.js index f687fae99..f3ca4ce7b 100644 --- a/app/javascript/flavours/glitch/features/compose/containers/upload_container.js +++ b/app/javascript/flavours/glitch/features/compose/containers/upload_container.js @@ -1,7 +1,6 @@ import { connect } from 'react-redux'; import Upload from '../components/upload'; -import { undoUploadCompose } from 'flavours/glitch/actions/compose'; -import { openModal } from 'flavours/glitch/actions/modal'; +import { undoUploadCompose, initMediaEditModal } from 'flavours/glitch/actions/compose'; import { submitCompose } from 'flavours/glitch/actions/compose'; const mapStateToProps = (state, { id }) => ({ @@ -15,7 +14,7 @@ const mapDispatchToProps = dispatch => ({ }, onOpenFocalPoint: id => { - dispatch(openModal('FOCAL_POINT', { id })); + dispatch(initMediaEditModal(id)); }, onSubmit (router) { |