|
|
@ -257,16 +257,20 @@ class Network extends Component { |
|
|
|
</section> |
|
|
|
</div> |
|
|
|
<div className={styles.actions}> |
|
|
|
<section onClick={() => removeClicked(channel)}> |
|
|
|
{ |
|
|
|
closingChannelIds.includes(channel.chan_id) ? |
|
|
|
<span className={`${styles.loading} hint--left`} data-hint='closing'> |
|
|
|
<i>Closing</i> <i className={`${styles.spinner} ${styles.closing}`} /> |
|
|
|
</span> |
|
|
|
: |
|
|
|
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> |
|
|
|
</section> |
|
|
|
} |
|
|
|
{ |
|
|
|
(Object.prototype.hasOwnProperty.call(channel, 'active') && !closingChannelIds.includes(channel.chan_id)) && |
|
|
|
<section onClick={() => removeClicked(channel)}> |
|
|
|
<div>Disconnect</div> |
|
|
|
</section> |
|
|
|
} |
|
|
|
</section> |
|
|
|
</div> |
|
|
|
</section> |
|
|
|
</li> |
|
|
|