2019-11-04 22:04:35 -06:00
|
|
|
@model LndSeedBackupViewModel
|
|
|
|
@{
|
2021-04-08 15:32:42 +02:00
|
|
|
ViewData.SetActivePageAndTitle(ServerNavPages.Services, "LND Seed Backup");
|
2019-11-04 22:04:35 -06:00
|
|
|
}
|
|
|
|
|
2021-04-08 15:32:42 +02:00
|
|
|
<h2 class="mb-4">@ViewData["Title"]</h2>
|
2019-11-04 22:04:35 -06:00
|
|
|
|
2019-11-15 17:55:55 +09:00
|
|
|
@if (Model.IsWalletUnlockPresent)
|
|
|
|
{
|
|
|
|
<div class="row">
|
2021-04-08 15:32:42 +02:00
|
|
|
<div class="col-lg-8">
|
2019-11-15 17:55:55 +09:00
|
|
|
<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">
|
2021-05-19 04:39:27 +02:00
|
|
|
<label asp-for="Seed" class="input-group-text"><span class="input-group-addon fa fa-eye"></span><span class="ms-2">Seed</span></label>
|
|
|
|
<textarea asp-for="Seed" onClick="this.select();" class="form-control" readonly rows="@(Model.Removed ? "1" : "3")"></textarea>
|
2019-11-15 17:55:55 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@if (!Model.Removed)
|
2019-11-04 22:04:35 -06:00
|
|
|
{
|
2019-11-15 17:55:55 +09:00
|
|
|
<div class="form-group collapse">
|
|
|
|
<div class="input-group">
|
2021-05-19 04:39:27 +02:00
|
|
|
<label asp-for="WalletPassword" class="input-group-text"><span class="input-group-addon fa fa-lock"></span><span class="ms-2">Password</span></label>
|
|
|
|
<input asp-for="WalletPassword" onClick="this.select();" class="form-control" readonly />
|
2019-11-15 17:55:55 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group collapse">
|
2021-05-19 04:39:27 +02:00
|
|
|
<form method="get" asp-action="RemoveLndSeed" asp-route-serviceName="@Context.GetRouteValue("serviceName")" asp-route-cryptoCode="@Context.GetRouteValue("cryptoCode")">
|
2019-11-16 14:06:37 +09:00
|
|
|
<button id="delete" class="btn btn-primary" type="submit">Remove Seed from server</button>
|
2019-11-15 17:55:55 +09:00
|
|
|
</form>
|
|
|
|
</div>
|
2019-11-04 22:04:35 -06:00
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-15 17:55:55 +09:00
|
|
|
}
|
2019-11-04 22:04:35 -06:00
|
|
|
|
2021-05-19 04:39:27 +02:00
|
|
|
@section PageFootContent {
|
|
|
|
<script>
|
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
|
|
document.getElementById("details").addEventListener("click", function () {
|
|
|
|
document.querySelectorAll(".form-group.collapse").forEach(el => el.classList.remove("collapse"));
|
|
|
|
this.classList.add("collapse");
|
2019-11-15 17:55:55 +09:00
|
|
|
});
|
|
|
|
});
|
2019-11-05 13:40:06 -06:00
|
|
|
</script>
|
2019-11-04 22:04:35 -06:00
|
|
|
}
|