diff options
author | David Yip <yipdw@member.fsf.org> | 2018-01-14 03:35:25 -0600 |
---|---|---|
committer | David Yip <yipdw@member.fsf.org> | 2018-01-14 03:35:25 -0600 |
commit | cd1377de7f870462265ade5d8ad7052ef480dd90 (patch) | |
tree | d2c5d0a4530f3d5494e6d2d7b3d827eaccb2f105 /app/javascript/flavours/glitch | |
parent | 1dbb6b5e08b6672a77d2f7f4121e7874b750db60 (diff) |
Bind click event to elefriend cycling. #294.
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r-- | app/javascript/flavours/glitch/features/drawer/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/features/drawer/index.js b/app/javascript/flavours/glitch/features/drawer/index.js index 8f9719096..832b16e6f 100644 --- a/app/javascript/flavours/glitch/features/drawer/index.js +++ b/app/javascript/flavours/glitch/features/drawer/index.js @@ -12,6 +12,7 @@ import { showSearch, submitSearch, } from 'flavours/glitch/actions/search'; +import { cycleElefriendCompose } from 'flavours/glitch/actions/compose'; // Components. import Composer from 'flavours/glitch/features/composer'; @@ -39,6 +40,7 @@ const mapStateToProps = state => ({ const mapDispatchToProps = { onChange: changeSearch, onClear: clearSearch, + onClickElefriend: cycleElefriendCompose, onShow: showSearch, onSubmit: submitSearch, onOpenSettings: openModal.bind(null, 'SETTINGS', {}), @@ -62,6 +64,7 @@ class Drawer extends React.Component { multiColumn, onChange, onClear, + onClickElefriend, onOpenSettings, onShow, onSubmit, @@ -73,6 +76,7 @@ class Drawer extends React.Component { let elefriendAttrs = { className: classNames('mastodon', 'mbstobon-' + elefriend), + onClick: onClickElefriend, }; // The result. @@ -128,6 +132,7 @@ Drawer.propTypes = { // Dispatch props. onChange: PropTypes.func, onClear: PropTypes.func, + onClickElefriend: PropTypes.func, onShow: PropTypes.func, onSubmit: PropTypes.func, onOpenSettings: PropTypes.func, |