mirror of
https://github.com/status-im/nft-faucet.git
synced 2025-02-23 12:08:32 +00:00
83 lines
2.4 KiB
Plaintext
83 lines
2.4 KiB
Plaintext
@page "/mint"
|
|
@using NftFaucet.Domain.Models.Enums
|
|
@inherits BasicComponent
|
|
|
|
<PageTitle>Mint</PageTitle>
|
|
<RadzenContent Container="main">
|
|
<RadzenHeading Size="H1" Text="Mint" />
|
|
<p>
|
|
<text style="font-weight: bold;">Network: </text>
|
|
@if (AppState?.SelectedNetwork == null)
|
|
{
|
|
@:<text style="color: red;">NOT SELECTED</text>
|
|
}
|
|
else
|
|
{
|
|
@:<text style="color: green;">OK</text>
|
|
}
|
|
</p>
|
|
<p>
|
|
<text style="font-weight: bold;">Wallet: </text>
|
|
@if (AppState?.SelectedWallet == null)
|
|
{
|
|
@:<text style="color: red;">NOT SELECTED</text>
|
|
}
|
|
else if (!AppState.SelectedWallet.IsConfigured)
|
|
{
|
|
@:<text style="color: red;">NOT CONFIGURED</text>
|
|
}
|
|
else
|
|
{
|
|
@:<text style="color: green;">OK</text>
|
|
}
|
|
</p>
|
|
<p>
|
|
<text style="font-weight: bold;">Contract: </text>
|
|
@if (AppState?.SelectedContract == null)
|
|
{
|
|
@:<text style="color: red;">NOT SELECTED</text>
|
|
}
|
|
else
|
|
{
|
|
@:<text style="color: green;">OK</text>
|
|
}
|
|
</p>
|
|
<p>
|
|
<text style="font-weight: bold;">Token: </text>
|
|
@if (AppState?.SelectedToken == null)
|
|
{
|
|
@:<text style="color: red;">NOT SELECTED</text>
|
|
}
|
|
else
|
|
{
|
|
@:<text style="color: green;">OK</text>
|
|
}
|
|
</p>
|
|
<p>
|
|
<text style="font-weight: bold;">Upload location: </text>
|
|
@if (AppState?.SelectedUploadLocation == null)
|
|
{
|
|
@:<text style="color: red;">NOT SELECTED</text>
|
|
}
|
|
else
|
|
{
|
|
@:<text style="color: green;">OK</text>
|
|
}
|
|
</p>
|
|
@if (IsReadyToMint)
|
|
{
|
|
<div class="mb-4">
|
|
<h4>Destination address</h4>
|
|
<RadzenTextBox Placeholder="<null>" @bind-Value="@AppState.UserStorage.DestinationAddress" Class="w-100"/>
|
|
</div>
|
|
if (AppState!.SelectedContract!.Type == ContractType.Erc1155)
|
|
{
|
|
<div class="mb-4">
|
|
<h4>Tokens amount</h4>
|
|
<RadzenNumeric TValue="int" Min="1" Max="100000" @bind-Value="@AppState.UserStorage.TokenAmount" Class="w-100" />
|
|
</div>
|
|
}
|
|
<RadzenButton Text="Mint" Disabled="@string.IsNullOrEmpty(AppState.UserStorage.DestinationAddress)" Click="@(async () => await Mint())" />
|
|
}
|
|
</RadzenContent>
|