From c6a32a1643fd34444df0d8014beb4e8749e07b8a Mon Sep 17 00:00:00 2001 From: oleksandrK Date: Mon, 29 Jan 2024 19:50:48 +0100 Subject: [PATCH] Fix the source nodea list. --- src/Pages/ChannelRequests.razor | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Pages/ChannelRequests.razor b/src/Pages/ChannelRequests.razor index ab4d5ca5..df0c8003 100644 --- a/src/Pages/ChannelRequests.razor +++ b/src/Pages/ChannelRequests.razor @@ -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"> @@ -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;