Add autoloadTimelines user setting to configure timeline loading behavior

This commit is contained in:
Alex Gleason
2021-10-15 15:41:40 -05:00
parent 27a30078a3
commit 04787678a2
3 changed files with 17 additions and 1 deletions

View File

@ -1,11 +1,22 @@
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { injectIntl } from 'react-intl';
import { throttle } from 'lodash';
import classNames from 'classnames';
import Icon from 'soapbox/components/icon';
import { getSettings } from 'soapbox/actions/settings';
export default @injectIntl
const mapStateToProps = state => {
const settings = getSettings(state);
return {
autoload: settings.get('autoloadTimelines'),
};
};
export default @connect(mapStateToProps)
@injectIntl
class TimelineQueueButtonHeader extends React.PureComponent {
static propTypes = {