Updated GroupCollectionTimeline
• Updated: - GroupCollectionTimeline
This commit is contained in:
parent
8cafd0f301
commit
6c9c36bcb3
@ -26,11 +26,11 @@ const messages = defineMessages({
|
|||||||
empty: { id: 'empty_column.group_collection_timeline', defaultMessage: 'There are no gabs to display.' },
|
empty: { id: 'empty_column.group_collection_timeline', defaultMessage: 'There are no gabs to display.' },
|
||||||
})
|
})
|
||||||
|
|
||||||
const mapStateToProps = (state, { collectionType }) => {
|
const mapStateToProps = (state) => {
|
||||||
|
|
||||||
let dontShowGroupSort = true
|
let dontShowGroupSort = true
|
||||||
try {
|
try {
|
||||||
dontShowGroupSort = !!me && collectionType === 'member' && state.getIn(['timelines', `group_collection:${collectionType}`, 'items'], ImmutableList()).count() === 0
|
dontShowGroupSort = state.getIn(['group_lists', 'member', 'items'], ImmutableList()).count() === 0
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
@ -162,7 +162,7 @@ class GroupCollectionTimeline extends PureComponent {
|
|||||||
dontShowGroupSort,
|
dontShowGroupSort,
|
||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
const emptyMessage = !!me && collectionType === 'member' ? (
|
const emptyMessage = !!me && collectionType === 'member' && dontShowGroupSort ? (
|
||||||
<div className={[_s.default, _s.width100PC]}>
|
<div className={[_s.default, _s.width100PC]}>
|
||||||
<Text className={[_s.default, _s.mb10].join(' ')}>
|
<Text className={[_s.default, _s.mb10].join(' ')}>
|
||||||
Join some groups then come back here to view your group timeline
|
Join some groups then come back here to view your group timeline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user