[Glitch] Use local instead of global loading indicator for timelines, account timelines

Port dd00cd19d2 to glitch-soc
This commit is contained in:
Thibaut Girka
2018-11-09 16:47:50 +01:00
committed by ThibG
parent c5a4dc9118
commit 5ebbaffaa3
5 changed files with 38 additions and 6 deletions

View File

@ -24,7 +24,7 @@ export default class StatusList extends ImmutablePureComponent {
hasMore: PropTypes.bool,
prepend: PropTypes.node,
emptyMessage: PropTypes.node,
timelineId: PropTypes.string.isRequired,
timelineId: PropTypes.string,
};
static defaultProps = {
@ -121,7 +121,7 @@ export default class StatusList extends ImmutablePureComponent {
}
return (
<ScrollableList {...other} onLoadMore={onLoadMore && this.handleLoadOlder} ref={this.setRef}>
<ScrollableList {...other} showLoading={isLoading && statusIds.size === 0} onLoadMore={onLoadMore && this.handleLoadOlder} ref={this.setRef}>
{scrollableContent}
</ScrollableList>
);