-
Notifications
You must be signed in to change notification settings - Fork 4
chore: show topup/increase option ony if available #541
Conversation
The backends without channel management do not have support for this
* master: Update README.md
<Button variant="outline">Increase</Button> | ||
</Link> | ||
</CardFooter> | ||
{hasChannelManagement && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I didn't think about this 😱
But we should hide the entire card, right? "Receiving capacity" makes no sense for LNClients without channel management
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true, stupid me... :) 😱
I don't think the design is finalized yet, so it might be best to wait for that
We could do this, but there should be no way to access those pages normally (as long as we don't forget to implement these checks 😅 ) |
if the backend does not have any channel management then the incoming capcity box does not make sense
<Button variant="outline">Increase</Button> | ||
</Link> | ||
</CardFooter> | ||
{hasChannelManagement && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one still needs to be updated to hide the whole card
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK
Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
The backends without channel management do not have support for this.