diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-20 01:28:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-20 01:28:25 +0200 |
commit | de475cf8d32744330f8029f13c539237a6567029 (patch) | |
tree | eaad397dac2ea78230500fd3a7e150021b960d57 /app/javascript/mastodon/features/blocks/index.js | |
parent | b369fc2de4ab0242775a56fb6208d9dbf2109d91 (diff) |
Add account media gallery view to web UI (#3120)
* Add account media gallery view to web UI * Link media view from account dropdown * Adjust link
Diffstat (limited to 'app/javascript/mastodon/features/blocks/index.js')
-rw-r--r-- | app/javascript/mastodon/features/blocks/index.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/javascript/mastodon/features/blocks/index.js b/app/javascript/mastodon/features/blocks/index.js index 4af48cf9c..d8fd29325 100644 --- a/app/javascript/mastodon/features/blocks/index.js +++ b/app/javascript/mastodon/features/blocks/index.js @@ -28,16 +28,11 @@ class Blocks extends ImmutablePureComponent { intl: PropTypes.object.isRequired }; - constructor (props, context) { - super(props, context); - this.handleScroll = this.handleScroll.bind(this); - } - componentWillMount () { this.props.dispatch(fetchBlocks()); } - handleScroll (e) { + handleScroll = (e) => { const { scrollTop, scrollHeight, clientHeight } = e.target; if (scrollTop === scrollHeight - clientHeight) { |