From ac9993c7c70a88585926e62e9598d01c4c206735 Mon Sep 17 00:00:00 2001 From: Rodrigo <39995243+RodriFS@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:08:47 +0200 Subject: [PATCH 1/2] Fix UI not showing more than 10 elements --- src/Services/CoinSelectionService.cs | 4 ++-- src/Shared/UTXOSelectorModal.razor | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Services/CoinSelectionService.cs b/src/Services/CoinSelectionService.cs index 753e3e3c..5042d89b 100644 --- a/src/Services/CoinSelectionService.cs +++ b/src/Services/CoinSelectionService.cs @@ -181,7 +181,7 @@ public async Task> GetAvailableUTXOsAsync(DerivationStrategyBase deri public async Task> GetAvailableUTXOsAsync(DerivationStrategyBase derivationStrategy, CoinSelectionStrategy strategy, int limit, long amount, long closestTo) { UTXOChanges utxoChanges; - if (Constants.NBXPLORER_ENABLE_CUSTOM_BACKEND && limit > 0) + if (Constants.NBXPLORER_ENABLE_CUSTOM_BACKEND) { utxoChanges = await _nbXplorerService.GetUTXOsByLimitAsync(derivationStrategy, strategy, limit, amount, closestTo); } @@ -218,4 +218,4 @@ public async Task> GetUTXOsByOutpointAsync(DerivationStrategyBase der utxos.RemoveDuplicateUTXOs(); return utxos.Confirmed.UTXOs.Where(utxo => outPoints.Contains(utxo.Outpoint)).ToList(); } -} \ No newline at end of file +} diff --git a/src/Shared/UTXOSelectorModal.razor b/src/Shared/UTXOSelectorModal.razor index f20d320b..5a780512 100644 --- a/src/Shared/UTXOSelectorModal.razor +++ b/src/Shared/UTXOSelectorModal.razor @@ -85,6 +85,8 @@ @bind-SelectedRows="SelectedUTXOs" Responsive FixedHeader + @* Hack to turn off pagination completely in blazorise *@ + PageSize="1000000000" FixedHeaderDataGridMaxHeight="400px" > @@ -294,4 +296,4 @@ _limit = limit; await OnChange(); } -} \ No newline at end of file +} From 6d84be5850d56134dc9ead13d8555f300e918b0b Mon Sep 17 00:00:00 2001 From: Rodrigo <39995243+RodriFS@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:17:51 +0200 Subject: [PATCH 2/2] removed comment breaking the tag --- src/Shared/UTXOSelectorModal.razor | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Shared/UTXOSelectorModal.razor b/src/Shared/UTXOSelectorModal.razor index 5a780512..c458d0e6 100644 --- a/src/Shared/UTXOSelectorModal.razor +++ b/src/Shared/UTXOSelectorModal.razor @@ -85,7 +85,6 @@ @bind-SelectedRows="SelectedUTXOs" Responsive FixedHeader - @* Hack to turn off pagination completely in blazorise *@ PageSize="1000000000" FixedHeaderDataGridMaxHeight="400px" >