mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 22:11:48 +01:00
Lightning Address: Display validation messages on failed creation
Fixes #6590.
This commit is contained in:
parent
df82860ada
commit
32f1d5ea1d
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@
|
|||
<form asp-action="EditLightningAddress" method="post">
|
||||
@{
|
||||
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;
|
||||
var showAdvancedOptions = !string.IsNullOrEmpty(Model.Add?.CurrencyCode) || !string.IsNullOrEmpty(Model.Add?.InvoiceMetadata) || Model.Add?.Min != null || Model.Add?.Max != null;
|
||||
}
|
||||
|
||||
<div class="collapse @(showAddForm ? "show": "")" id="AddAddress">
|
||||
|
|
Loading…
Add table
Reference in a new issue