btcpayserver/BTCPayServer/Views/Stores/ImportWallet/Seed.cshtml
d11n c73878ccca
Fix missing hot wallet option on seed import (#2284)
* Fix missing hot wallet option on seed import

Thanks @kukks for spotting!

* Tests: Wait for button to be ready for interaction

* Camelcase test selectors

* Tests: Remove general ImplicitWait

* Tests: Add WaitForAndClick helper

* Tests: Refactor SetCheckbox

* Tests: Add WaitForElement helper

* Tests: Refactor and use wait.UntilJsIsReady helper

* Fix missing helper in ethereum tests

* Tests: Some more refactorings
2021-02-17 12:14:29 +09:00

36 lines
1.1 KiB
Text

@model WalletSetupViewModel
@addTagHelper *, BundlerMinifier.TagHelpers
@{
Layout = "_LayoutWalletSetup";
ViewData["Title"] = "Enter the wallet seed";
}
@section Navbar {
<a asp-controller="Stores" asp-action="ImportWallet" asp-route-storeId="@Model.StoreId" asp-route-cryptoCode="@Model.CryptoCode" asp-route-method="">
<vc:icon symbol="back" />
</a>
}
<header class="text-center">
<h1>@ViewData["Title"]</h1>
<p class="lead text-secondary mt-3">Manually enter your 12 or 24 word recovery seed.</p>
</header>
<div class="my-5">
@if (Model.CanUseHotWallet)
{
ViewData.Add(nameof(Model.CanUseHotWallet), Model.CanUseHotWallet);
ViewData.Add(nameof(Model.CanUseRPCImport), Model.CanUseRPCImport);
ViewData.Add(nameof(Model.Method), Model.Method);
@await Html.PartialAsync("_GenerateWalletForm", Model.SetupRequest)
}
else
{
<p class="mb-0">Please note that creating a wallet is not supported by your instance.</p>
}
</div>
@section Scripts {
@await Html.PartialAsync("_ValidationScriptsPartial")
}