Skip to content

Commit

Permalink
Fix UI not showing more than 10 elements
Browse files Browse the repository at this point in the history
  • Loading branch information
RodriFS committed Aug 12, 2024
1 parent 1f43c8c commit ac9993c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Services/CoinSelectionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public async Task<List<UTXO>> GetAvailableUTXOsAsync(DerivationStrategyBase deri
public async Task<List<UTXO>> 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);
}
Expand Down Expand Up @@ -218,4 +218,4 @@ public async Task<List<UTXO>> GetUTXOsByOutpointAsync(DerivationStrategyBase der
utxos.RemoveDuplicateUTXOs();
return utxos.Confirmed.UTXOs.Where(utxo => outPoints.Contains(utxo.Outpoint)).ToList();
}
}
}
4 changes: 3 additions & 1 deletion src/Shared/UTXOSelectorModal.razor
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
@bind-SelectedRows="SelectedUTXOs"
Responsive
FixedHeader
@* Hack to turn off pagination completely in blazorise *@
PageSize="1000000000"
FixedHeaderDataGridMaxHeight="400px"
>
<DataGridMultiSelectColumn Width="30px"></DataGridMultiSelectColumn>
Expand Down Expand Up @@ -294,4 +296,4 @@
_limit = limit;
await OnChange();
}
}
}

0 comments on commit ac9993c

Please sign in to comment.