@using BTCPayServer.Views.Stores @using BTCPayServer.Abstractions.Models @model UILNURLController.EditLightningAddressVM @{ ViewData.SetActivePage("LightningAddress", nameof(StoreNavPages), StringLocalizer["Lightning Address"], Context.GetStoreData().Id); } @section PageHeadContent { } @section PageFootContent { } @if (Context.Request.PathBase.ToString() != string.Empty) { }
@{ var showAddForm = !ViewContext.ViewData.ModelState.IsValid || !string.IsNullOrEmpty(Model.Add?.Username) || Model.Add?.Max != null || Model.Add?.Min != null || !string.IsNullOrEmpty(Model.Add?.CurrencyCode); var showAdvancedOptions = !string.IsNullOrEmpty(Model.Add?.CurrencyCode) || Model.Add?.Min != null || Model.Add?.Max != null; }
@@@Context.Request.Host.ToUriComponent()@Context.Request.PathBase
@if (Model.Items.Any()) { @for (var index = 0; index < Model.Items.Count; index++) { var address = $"{Model.Items[index].Username}@{Context.Request.Host.ToUriComponent()}"; }
Address Settings Actions
@if (Model.Items[index].Min.HasValue) { @Model.Items[index].Min min sats } @if (Model.Items[index].Max.HasValue) { @Model.Items[index].Max max sats } @if (!string.IsNullOrEmpty(Model.Items[index].CurrencyCode)) { tracked in @Model.Items[index].CurrencyCode } @if (!string.IsNullOrEmpty(Model.Items[index].InvoiceMetadata)) { with invoice metadata @Model.Items[index].InvoiceMetadata }
} else {

There are no Lightning Addresses yet.

}