Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

chore: show topup/increase option ony if available #541

Merged
merged 5 commits into from
Jul 1, 2024

Conversation

bumi
Copy link

@bumi bumi commented Jun 29, 2024

The backends without channel management do not have support for this.

  • could those boxes be reusable components?
  • could the channel pages check if channel management is available and if not redirect to home?

bumi added 2 commits June 29, 2024 21:36
The backends without channel management do not have support for this
<Button variant="outline">Increase</Button>
</Link>
</CardFooter>
{hasChannelManagement && (
Copy link
Collaborator

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

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true, stupid me... :) 😱

@rolznz
Copy link
Collaborator

rolznz commented Jun 30, 2024

could those boxes be reusable components?

I don't think the design is finalized yet, so it might be best to wait for that

could the channel pages check if channel management is available and if not redirect to home?

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 && (
Copy link
Collaborator

@rolznz rolznz Jul 1, 2024

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

Copy link
Collaborator

@rolznz rolznz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK

@rolznz rolznz merged commit ea6829c into master Jul 1, 2024
8 checks passed
@rolznz rolznz deleted the chore/check-increase-available branch July 1, 2024 13:39
reneaaron pushed a commit that referenced this pull request Jul 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants