mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-22 06:34:36 +01:00
make no js version a littler better
This commit is contained in:
@@ -51,6 +51,8 @@ namespace BTCPayServer.Models.WalletViewModels
|
||||
public bool NBXSeedAvailable { get; set; }
|
||||
public bool InputSelection { get; set; }
|
||||
public InputSelectionOption[] InputsAvailable { get; set; }
|
||||
|
||||
[Display(Name = "UTXOs to spend from")]
|
||||
public IEnumerable<string> SelectedInputs { get; set; }
|
||||
|
||||
public class InputSelectionOption
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
.only-for-js{
|
||||
display:none !important;
|
||||
}
|
||||
[v-cloak]::before { content: "" !important; }
|
||||
</style>
|
||||
</noscript>
|
||||
</head>
|
||||
|
||||
@@ -38,13 +38,15 @@
|
||||
|
||||
@if (Model.InputSelection)
|
||||
{
|
||||
|
||||
<select multiple="multiple" asp-for="SelectedInputs" class="hide-when-js">
|
||||
@foreach (var input in Model.InputsAvailable)
|
||||
{
|
||||
<option value="@input.Outpoint" asp-selected="@(Model.SelectedInputs?.Contains(input.Outpoint)??false)">@input.Outpoint <span>@input.Amount</span> </option>
|
||||
}
|
||||
</select>
|
||||
<div class="form-group hide-when-js">
|
||||
<label asp-for="SelectedInputs"></label>
|
||||
<select multiple="multiple" asp-for="SelectedInputs" >
|
||||
@foreach (var input in Model.InputsAvailable)
|
||||
{
|
||||
<option value="@input.Outpoint" asp-selected="@(Model.SelectedInputs?.Contains(input.Outpoint)??false)">@input.Outpoint <span>@input.Amount</span> </option>
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
<partial name="CoinSelection"/>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user