Browse Source

Merge pull request #549 from mrfelton/fix/empty-channel-filter

Show channel filter when there is an empty active filter
renovate/lint-staged-8.x
Ben Woosley 7 years ago
committed by GitHub
parent
commit
28aa40eb60
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      app/components/Contacts/Network.js

9
app/components/Contacts/Network.js

@ -31,7 +31,8 @@ class Network extends Component {
filter, filter,
selectedChannel, selectedChannel,
loadingChannelPubkeys, loadingChannelPubkeys,
closingChannelIds closingChannelIds,
channels
}, },
currentChannels, currentChannels,
balance, balance,
@ -175,9 +176,13 @@ class Network extends Component {
<div className={styles.channels}> <div className={styles.channels}>
{!loadingChannelPubkeys.length && {!loadingChannelPubkeys.length &&
!currentChannels.length && !currentChannels.length &&
!channels.length &&
!searchQuery.length && <SuggestedNodes {...suggestedNodesProps} />} !searchQuery.length && <SuggestedNodes {...suggestedNodesProps} />}
{(loadingChannelPubkeys.length || currentChannels.length) && ( {(loadingChannelPubkeys.length ||
currentChannels.length ||
channels.length ||
searchQuery.length) && (
<header className={styles.listHeader}> <header className={styles.listHeader}>
<section> <section>
<h2 onClick={toggleFilterPulldown} className={styles.filterTitle}> <h2 onClick={toggleFilterPulldown} className={styles.filterTitle}>

Loading…
Cancel
Save