Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UI not showing more than 10 elements #392

Merged
merged 2 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
}
}
}
3 changes: 2 additions & 1 deletion src/Shared/UTXOSelectorModal.razor
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
@bind-SelectedRows="SelectedUTXOs"
Responsive
FixedHeader
PageSize="1000000000"
FixedHeaderDataGridMaxHeight="400px"
>
<DataGridMultiSelectColumn Width="30px"></DataGridMultiSelectColumn>
Expand All @@ -100,10 +101,10 @@
</div>
</div>
<Row Class="mx-1">
<Feedback>@String.Join(",", GetUTXOsValues())</Feedback>

Check warning on line 104 in src/Shared/UTXOSelectorModal.razor

View workflow job for this annotation

GitHub Actions / build-and-test

Found markup element with unexpected name 'Feedback'. If this is intended to be a component, add a @using directive for its namespace.
</Row>
<Row Class="mx-1">
<Feedback class="text-danger">@(_validation.Messages != null ? String.Join(",", _validation.Messages) : "")</Feedback>

Check warning on line 107 in src/Shared/UTXOSelectorModal.razor

View workflow job for this annotation

GitHub Actions / build-and-test

Found markup element with unexpected name 'Feedback'. If this is intended to be a component, add a @using directive for its namespace.
</Row>
</ModalBody>
<ModalFooter>
Expand Down Expand Up @@ -294,4 +295,4 @@
_limit = limit;
await OnChange();
}
}
}
Loading