about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/compose/containers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-28 20:56:08 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-28 20:58:40 -0500
commit4fc97d77a93c93bfc74c9cd774496ddf8e91c0a7 (patch)
tree62fdd6185ea921c43fc7e35e6d7659c23eb4a317 /app/javascript/flavours/glitch/features/compose/containers
parentb93bf4b27192996a704de9a7cd14c22655a54462 (diff)
add clear button & missing monsterpit visibility icons
Diffstat (limited to 'app/javascript/flavours/glitch/features/compose/containers')
-rw-r--r--app/javascript/flavours/glitch/features/compose/containers/compose_form_container.js5
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));