Fix displaying 'balance not enough' dialog

This commit is contained in:
Ivan Yaremenchuk 2022-09-29 22:33:34 -05:00
parent eee31b90c0
commit 2452e30162

View File

@ -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;">&lt;null&gt;</text>
}
<text style="color: red;">&lt;null&gt;</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;">&lt;unknown&gt;</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
{
@:&lt;unknown&gt;
}
</text>
</p>
<div style="display: flex; justify-content: end;">
<RadzenButton Click="@(async (args) => await CheckNetwork())" Text="Try again" Disabled="@(!string.IsNullOrEmpty(ProgressBarText))" />