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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
2 deletions
-
app/components/Contacts/Network.js
|
|
@ -31,7 +31,8 @@ class Network extends Component { |
|
|
|
filter, |
|
|
|
selectedChannel, |
|
|
|
loadingChannelPubkeys, |
|
|
|
closingChannelIds |
|
|
|
closingChannelIds, |
|
|
|
channels |
|
|
|
}, |
|
|
|
currentChannels, |
|
|
|
balance, |
|
|
@ -175,9 +176,13 @@ class Network extends Component { |
|
|
|
<div className={styles.channels}> |
|
|
|
{!loadingChannelPubkeys.length && |
|
|
|
!currentChannels.length && |
|
|
|
!channels.length && |
|
|
|
!searchQuery.length && <SuggestedNodes {...suggestedNodesProps} />} |
|
|
|
|
|
|
|
{(loadingChannelPubkeys.length || currentChannels.length) && ( |
|
|
|
{(loadingChannelPubkeys.length || |
|
|
|
currentChannels.length || |
|
|
|
channels.length || |
|
|
|
searchQuery.length) && ( |
|
|
|
<header className={styles.listHeader}> |
|
|
|
<section> |
|
|
|
<h2 onClick={toggleFilterPulldown} className={styles.filterTitle}> |
|
|
|