diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-08-18 11:01:53 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-08-18 17:53:20 +0200 |
commit | 534439e73b95814b0db927052c9522c60fc306c5 (patch) | |
tree | 5a921e8053e211da9b7d38326da18708a87a5b1c /app/javascript/flavours/glitch/features/composer/index.js | |
parent | 9782ac017bbee51f443378350480c864a268ac08 (diff) |
Add focal points support in the composer
Diffstat (limited to 'app/javascript/flavours/glitch/features/composer/index.js')
-rw-r--r-- | app/javascript/flavours/glitch/features/composer/index.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/composer/index.js b/app/javascript/flavours/glitch/features/composer/index.js index 771c5d0e3..e77d429be 100644 --- a/app/javascript/flavours/glitch/features/composer/index.js +++ b/app/javascript/flavours/glitch/features/composer/index.js @@ -103,7 +103,7 @@ const mapDispatchToProps = (dispatch) => ({ dispatch(changeComposeAdvancedOption(option, value)); }, onChangeDescription(id, description) { - dispatch(changeUploadCompose(id, description)); + dispatch(changeUploadCompose(id, { description })); }, onChangeSensitivity() { dispatch(changeComposeSensitivity()); @@ -141,6 +141,9 @@ const mapDispatchToProps = (dispatch) => ({ onOpenDoodleModal() { dispatch(openModal('DOODLE', { noEsc: true })); }, + onOpenFocalPointModal(id) { + dispatch(openModal('FOCAL_POINT', { id })); + }, onSelectSuggestion(position, token, suggestion) { dispatch(selectComposeSuggestion(position, token, suggestion)); }, @@ -339,6 +342,7 @@ class Composer extends React.Component { onFetchSuggestions, onOpenActionsModal, onOpenDoodleModal, + onOpenFocalPointModal, onUndoUpload, onUpload, privacy, @@ -397,6 +401,7 @@ class Composer extends React.Component { intl={intl} media={media} onChangeDescription={onChangeDescription} + onOpenFocalPointModal={onOpenFocalPointModal} onRemove={onUndoUpload} progress={progress} uploading={isUploading} |