mirror of
https://github.com/status-im/nft-faucet.git
synced 2025-02-22 03:28:24 +00:00
Fix displaying 'balance not enough' dialog
This commit is contained in:
parent
eee31b90c0
commit
2452e30162
@ -31,14 +31,7 @@ else if (State == MintingState.CheckingNetwork)
|
||||
<h3>Address is not available!</h3>
|
||||
<p>
|
||||
<text style="font-weight: bold;">Provider address: </text>
|
||||
@if (!string.IsNullOrEmpty(SourceAddress))
|
||||
{
|
||||
@:<text style="color: green;">@SourceAddress</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
@:<text style="color: red;"><null></text>
|
||||
}
|
||||
<text style="color: red;"><null></text>
|
||||
</p>
|
||||
<div style="display: flex; justify-content: end;">
|
||||
<RadzenButton Click="@(async (args) => await CheckNetwork())" Text="Try again" Disabled="@(!string.IsNullOrEmpty(ProgressBarText))" />
|
||||
@ -49,15 +42,19 @@ else if (State == MintingState.CheckingNetwork)
|
||||
<RadzenContent Container="main">
|
||||
<h3>Not enough balance!</h3>
|
||||
<p>
|
||||
<text style="font-weight: bold;">Balance: </text>
|
||||
@if (Balance != null)
|
||||
{
|
||||
@:<text style="color: red;">@(Balance.Amount + " " + Balance.Currency)</text>
|
||||
}
|
||||
else
|
||||
{
|
||||
@:<text style="color: red;"><unknown></text>
|
||||
}
|
||||
<text style="font-weight: bold;">Balance</text>
|
||||
<text> (@SourceAddress)</text>
|
||||
<text style="font-weight: bold;">: </text>
|
||||
<text style="color: red;">
|
||||
@if (Balance != null)
|
||||
{
|
||||
@(Balance.Amount + " " + Balance.Currency)
|
||||
}
|
||||
else
|
||||
{
|
||||
@:<unknown>
|
||||
}
|
||||
</text>
|
||||
</p>
|
||||
<div style="display: flex; justify-content: end;">
|
||||
<RadzenButton Click="@(async (args) => await CheckNetwork())" Text="Try again" Disabled="@(!string.IsNullOrEmpty(ProgressBarText))" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user