diff options
Diffstat (limited to 'app/javascript/flavours/glitch/features/compose/containers')
-rw-r--r-- | app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js b/app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js index 880778220..6d8763d29 100644 --- a/app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js +++ b/app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js @@ -14,6 +14,7 @@ import { submitCompose, unmountCompose, uploadCompose, + resetCompose, } from 'flavours/glitch/actions/compose'; import { openModal, @@ -134,6 +135,10 @@ const mapDispatchToProps = (dispatch, { intl }) => ({ })); }, + onClearAll() { + dispatch(resetCompose()); + } + }); export default injectIntl(connect(mapStateToProps, mapDispatchToProps)(ComposeForm)); |