From 2c0261ac255ace05078a5745a17886084d5f83d0 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 22 Sep 2016 01:08:35 +0200 Subject: Infinite scroll for timeline columns --- .../components/features/ui/containers/status_list_container.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/assets/javascripts/components/features/ui') diff --git a/app/assets/javascripts/components/features/ui/containers/status_list_container.jsx b/app/assets/javascripts/components/features/ui/containers/status_list_container.jsx index 4ea599fc0..4757ba448 100644 --- a/app/assets/javascripts/components/features/ui/containers/status_list_container.jsx +++ b/app/assets/javascripts/components/features/ui/containers/status_list_container.jsx @@ -2,6 +2,7 @@ import { connect } from 'react-redux'; import StatusList from '../../../components/status_list'; import { replyCompose } from '../../../actions/compose'; import { reblog, favourite } from '../../../actions/interactions'; +import { expandTimeline } from '../../../actions/timelines'; import { selectStatus } from '../../../reducers/timelines'; const mapStateToProps = function (state, props) { @@ -10,7 +11,7 @@ const mapStateToProps = function (state, props) { }; }; -const mapDispatchToProps = function (dispatch) { +const mapDispatchToProps = function (dispatch, props) { return { onReply: function (status) { dispatch(replyCompose(status)); @@ -22,6 +23,10 @@ const mapDispatchToProps = function (dispatch) { onReblog: function (status) { dispatch(reblog(status)); + }, + + onScrollToBottom: function () { + dispatch(expandTimeline(props.type)); } }; }; -- cgit