mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-28 18:34:27 +01:00
67 lines
2.9 KiB
Plaintext
67 lines
2.9 KiB
Plaintext
@model LndSeedBackupViewModel
|
|
@{
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Services);
|
|
}
|
|
|
|
<h4>LND Seed Backup</h4>
|
|
|
|
@if (TempData.HasStatusMessage())
|
|
{
|
|
<div class="row">
|
|
<div class="col-md-8 text-center">
|
|
<partial name="_StatusMessage" />
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
@if (Model.IsWalletUnlockPresent)
|
|
{
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<div class="form-group">
|
|
<p>The LND seed backup is useful to recover funds of your LND wallet in case of a corruption of your server.</p>
|
|
<p>The recovering process is documented by LND on <a href="https://github.com/lightningnetwork/lnd/blob/master/docs/recovery.md">this page</a>.</p>
|
|
</div>
|
|
<a class="btn btn-primary @(Model.Removed ? "collapse" : "")" id="details" href="#">See confidential seed information</a>
|
|
<div class="form-group @(Model.Removed ? "" : "collapse")">
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<label for="Seed" class="input-group-text"><span class="input-group-addon fa fa-eye"></span><span class="ml-2">Seed</span></label>
|
|
</div>
|
|
<textarea asp-for="Seed" onClick="this.select();" class="form-control" readonly rows="@(Model.Removed ? "1" : "3")"></textarea>
|
|
</div>
|
|
</div>
|
|
@if (!Model.Removed)
|
|
{
|
|
<div class="form-group collapse">
|
|
<div class="input-group">
|
|
<div class="input-group-prepend">
|
|
<label for="WalletPassword" class="input-group-text"><span class="input-group-addon fa fa-lock"></span><span class="ml-2">Password</span></label>
|
|
</div>
|
|
<input asp-for="WalletPassword" onClick="this.select();" class="form-control" readonly />
|
|
</div>
|
|
</div>
|
|
<div class="form-group collapse">
|
|
<form method="post" asp-action="RemoveLndSeed" asp-route-serviceName="@this.Context.GetRouteValue("serviceName")" asp-route-cryptoCode="@this.Context.GetRouteValue("cryptoCode")">
|
|
<button class="btn btn-primary" type="submit" onclick="return confirmSeedDelete();">Remove Seed from server</button>
|
|
</form>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
@section Scripts {
|
|
<script type="text/javascript">
|
|
function confirmSeedDelete() {
|
|
return confirm('This operation is not undoable. Are you sure you want to proceed with deleting seed from LND container?');
|
|
}
|
|
$(function () {
|
|
$("#details").click(function () {
|
|
$(".collapse").removeClass("collapse");
|
|
$(this).addClass("collapse");
|
|
});
|
|
});
|
|
</script>
|
|
}
|