about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/ui
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-22 01:08:35 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-22 01:08:35 +0200
commit2c0261ac255ace05078a5745a17886084d5f83d0 (patch)
tree4c8372d1d5b14a126d90421ff4a77f4fa077a3d9 /app/assets/javascripts/components/features/ui
parent74dfefabd39c52b47c6f5413568687ee3c76772f (diff)
Infinite scroll for timeline columns
Diffstat (limited to 'app/assets/javascripts/components/features/ui')
-rw-r--r--app/assets/javascripts/components/features/ui/containers/status_list_container.jsx7
1 files changed, 6 insertions, 1 deletions
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));
     }
   };
 };