Skip to content

Commit

Permalink
Merge pull request #366 from Elenpay/popup_operation_modal
Browse files Browse the repository at this point in the history
Fix the source nodes list.
  • Loading branch information
AleksKSoftware authored Jan 31, 2024
2 parents 7c6f503 + c6a32a1 commit fb7a48c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Pages/ChannelRequests.razor
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
TextField="@((item) => item.Name)"
ValueField="@((item) => item.Id)"
SelectedValueChanged="@OnSelectedSourceNode"
DefaultItemText="Choose the source node">
DefaultItemText="Choose the source node"
@onfocus="@UpdateManageableNodes">
<Feedback>
<ValidationError/>
</Feedback>
Expand Down Expand Up @@ -622,6 +623,14 @@
_selectedWalletBalance = ((Money)balance).ToUnit(MoneyUnit.BTC);
}

private async Task UpdateManageableNodes()
{
if (_destNodeName.IsNullOrEmpty ())
{
_manageableNodes = await NodeRepository.GetAllManagedByUser(LoggedUser.Id);
}
}

private async Task SearchNode()
{
_selectedDestNode = null;
Expand Down

0 comments on commit fb7a48c

Please sign in to comment.