Files
btcpayserver-breez-nodeless…/dist/BTCPayServer.Plugins.BreezSpark/Views/BreezSpark/Payments.cshtml
Aljaz Ceru 90a5c9c098 Fix: Update all view references from Breez to BreezSpark
- Fixed controller action references in Info.cshtml
- Updated partial view path in Payments.cshtml
- Fixed all SetActivePage calls to use BreezSpark
- Updated BreezPaymentsTable to BreezSparkPaymentsTable
- Fixed CSS IDs and selectors throughout views
- All navigation now correctly references BreezSpark controller
2025-12-10 21:17:46 +01:00

49 lines
1.9 KiB
Plaintext

@using BTCPayServer.Components
@using BTCPayServer
@using BTCPayServer.Abstractions.Extensions
@using BTCPayServer.Client
@using Microsoft.AspNetCore.Mvc.TagHelpers
@using BTCPayServer.Components.QRCode
@using BTCPayServer.Components.TruncateCenter
@model BTCPayServer.Plugins.BreezSpark.PaymentsViewModel
@{
var storeId = Context.GetCurrentStoreId();
ViewData.SetActivePage("Breez", "Payments", "Payments");
TempData.TryGetValue("bolt11", out var bolt11);
}
<div class="row mb-4">
<div class="col-12">
<div class="d-flex align-items-center justify-content-between mb-3">
<h3 class="mb-0">
<span>@ViewData["Title"]</span>
</h3>
<div class="d-flex gap-3 mt-3 mt-sm-0">
<a permission="@Policies.CanModifyStoreSettings" asp-action="Send" asp-controller="BreezSpark" asp-route-storeId="@storeId" type="submit" class="btn btn-primary">Send</a>
<a permission="@Policies.CanCreateInvoice" asp-action="Receive" asp-controller="BreezSpark" asp-route-storeId="@storeId" type="submit" class="btn btn-primary">Receive</a>
</div>
</div>
@if (bolt11 is string bolt11s)
{
<div class="payment-box">
<div class="qr-container" data-clipboard="@bolt11s">
<vc:qr-code data="@bolt11s"/>
</div>
<div class="input-group mt-3">
<div class="form-floating">
<vc:truncate-center text="@bolt11s" padding="15" elastic="true" classes="form-control-plaintext" id="Address"/>
<label for="Address">BOLT11 Invoice</label>
</div>
</div>
</div>
}
<partial name="Breez/BreezPaymentsTable" model="Model.Payments"/>
<vc:pager view-model="Model"></vc:pager>
</div>
</div>