Browse Source
Merge pull request #387 from LN-Zap/fix/disallow-closing-pending-channel
Fix/disallow closing pending channel
renovate/lint-staged-8.x
JimmyMow
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
11 additions and
7 deletions
-
app/components/Contacts/Network.js
|
|
@ -257,16 +257,20 @@ class Network extends Component { |
|
|
|
</section> |
|
|
|
</div> |
|
|
|
<div className={styles.actions}> |
|
|
|
<section onClick={() => removeClicked(channel)}> |
|
|
|
{ |
|
|
|
closingChannelIds.includes(channel.chan_id) ? |
|
|
|
{ |
|
|
|
closingChannelIds.includes(channel.chan_id) && |
|
|
|
<section> |
|
|
|
<span className={`${styles.loading} hint--left`} data-hint='closing'> |
|
|
|
<i>Closing</i> <i className={`${styles.spinner} ${styles.closing}`} /> |
|
|
|
</span> |
|
|
|
: |
|
|
|
<div>Disconnect</div> |
|
|
|
} |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
} |
|
|
|
{ |
|
|
|
(Object.prototype.hasOwnProperty.call(channel, 'active') && !closingChannelIds.includes(channel.chan_id)) && |
|
|
|
<section onClick={() => removeClicked(channel)}> |
|
|
|
<div>Disconnect</div> |
|
|
|
</section> |
|
|
|
} |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
</li> |
|
|
|