Add status content type dropdown to compose box.

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
KokaKiwi
2019-02-17 23:53:51 +01:00
committed by ThibG
parent 14d7ddcb1c
commit f34a402a94
6 changed files with 80 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import {
changeComposeSpoilerText,
changeComposeSpoilerness,
changeComposeVisibility,
changeComposeContentType,
clearComposeSuggestions,
fetchComposeSuggestions,
insertEmojiCompose,
@@ -57,6 +58,7 @@ function mapStateToProps (state) {
media: state.getIn(['compose', 'media_attachments']),
preselectDate: state.getIn(['compose', 'preselectDate']),
privacy: state.getIn(['compose', 'privacy']),
contentType: state.getIn(['compose', 'content_type']),
sideArm: sideArmPrivacy,
sensitive: state.getIn(['compose', 'sensitive']),
showSearch: state.getIn(['search', 'submitted']) && !state.getIn(['search', 'hidden']),
@@ -98,6 +100,10 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
dispatch(changeComposeSpoilerText(text));
},
onChangeContentType(value) {
dispatch(changeComposeContentType(value));
},
onPaste(files) {
dispatch(uploadCompose(files));
},