|
|
@ -64,7 +64,7 @@ const mapStateToProps = state => ({
|
|
|
|
showFilterBar: state.getIn(['settings', 'notifications', 'quickFilter', 'show']),
|
|
|
|
showFilterBar: state.getIn(['settings', 'notifications', 'quickFilter', 'show']),
|
|
|
|
notifications: getNotifications(state),
|
|
|
|
notifications: getNotifications(state),
|
|
|
|
localSettings: state.get('local_settings'),
|
|
|
|
localSettings: state.get('local_settings'),
|
|
|
|
isLoading: state.getIn(['notifications', 'isLoading'], true),
|
|
|
|
isLoading: state.getIn(['notifications', 'isLoading'], 0) > 0,
|
|
|
|
isUnread: state.getIn(['notifications', 'unread']) > 0 || state.getIn(['notifications', 'pendingItems']).size > 0,
|
|
|
|
isUnread: state.getIn(['notifications', 'unread']) > 0 || state.getIn(['notifications', 'pendingItems']).size > 0,
|
|
|
|
hasMore: state.getIn(['notifications', 'hasMore']),
|
|
|
|
hasMore: state.getIn(['notifications', 'hasMore']),
|
|
|
|
numPending: state.getIn(['notifications', 'pendingItems'], ImmutableList()).size,
|
|
|
|
numPending: state.getIn(['notifications', 'pendingItems'], ImmutableList()).size,
|
|
|
|