Browse Source
fix: don't show channel suggestions if pending channels exist
renovate/lint-staged-8.x
Ben Woosley
7 years ago
No known key found for this signature in database
GPG Key ID: 6EE5F3785F78B345
1 changed files with
4 additions and
6 deletions
-
app/components/Contacts/Network.js
|
|
@ -32,7 +32,8 @@ class Network extends Component { |
|
|
|
selectedChannel, |
|
|
|
loadingChannelPubkeys, |
|
|
|
closingChannelIds, |
|
|
|
channels |
|
|
|
channels, |
|
|
|
pendingChannels: { pending_open_channels } |
|
|
|
}, |
|
|
|
currentChannels, |
|
|
|
balance, |
|
|
@ -174,10 +175,7 @@ class Network extends Component { |
|
|
|
</header> |
|
|
|
|
|
|
|
<div className={styles.channels}> |
|
|
|
{loadingChannelPubkeys.length || |
|
|
|
currentChannels.length || |
|
|
|
channels.length || |
|
|
|
searchQuery.length ? ( |
|
|
|
{loadingChannelPubkeys.length || pending_open_channels.length || channels.length ? ( |
|
|
|
<header className={styles.listHeader}> |
|
|
|
<section> |
|
|
|
<h2 onClick={toggleFilterPulldown} className={styles.filterTitle}> |
|
|
@ -326,7 +324,7 @@ class Network extends Component { |
|
|
|
})} |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
{(loadingChannelPubkeys.length || currentChannels.length || searchQuery.length) && ( |
|
|
|
{(loadingChannelPubkeys.length || pending_open_channels.length || channels.length) && ( |
|
|
|
<footer className={styles.search}> |
|
|
|
<label htmlFor="search" className={`${styles.label} ${styles.input}`}> |
|
|
|
<Isvg src={search} /> |
|
|
|