Browse Source

[Glitch] Always display tab navigation on local/federated timeline even when empty

Port 90b64c0069 to glitch-soc
closed-social-glitch-2
Thibaut Girka 6 years ago
committed by ThibG
parent
commit
9fc7ad7b9c
3 changed files with 3 additions and 1 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/components/status_list.js
  2. +1
    -0
      app/javascript/flavours/glitch/features/community_timeline/index.js
  3. +1
    -0
      app/javascript/flavours/glitch/features/public_timeline/index.js

+ 1
- 1
app/javascript/flavours/glitch/components/status_list.js View File

@ -25,7 +25,7 @@ export default class StatusList extends ImmutablePureComponent {
prepend: PropTypes.node,
alwaysPrepend: PropTypes.bool,
emptyMessage: PropTypes.node,
timelineId: PropTypes.string,
timelineId: PropTypes.string.isRequired,
};
static defaultProps = {

+ 1
- 0
app/javascript/flavours/glitch/features/community_timeline/index.js View File

@ -131,6 +131,7 @@ export default class CommunityTimeline extends React.PureComponent {
<StatusListContainer
prepend={headline}
alwaysPrepend
trackScroll={!pinned}
scrollKey={`community_timeline-${columnId}`}
shouldUpdateScroll={this.shouldUpdateScroll}

+ 1
- 0
app/javascript/flavours/glitch/features/public_timeline/index.js View File

@ -131,6 +131,7 @@ export default class PublicTimeline extends React.PureComponent {
<StatusListContainer
prepend={headline}
alwaysPrepend
timelineId={`public${onlyMedia ? ':media' : ''}`}
onLoadMore={this.handleLoadMore}
trackScroll={!pinned}

Loading…
Cancel
Save