Skip to content

Commit c213f4f

Browse files
Merge branch 'main' into issue-304
2 parents e3063a4 + 77dc3bb commit c213f4f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

backend/api/invoices/recurring/generate_next_invoice_now.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,13 @@ def generate_next_invoice_now_endpoint(request: WebRequest, invoice_profile_id):
4848
)
4949

5050
return render(
51-
request, "pages/invoices/recurring/manage/next_invoice_block.html", {"invoiceProfile": invoice_recurring_profile} | context
51+
request,
52+
"pages/invoices/recurring/manage/next_invoice_block.html",
53+
{
54+
"invoiceProfile": invoice_recurring_profile,
55+
"swap": True,
56+
}
57+
| context,
5258
)
5359
else:
5460
logger.info(svc_resp.error)

frontend/templates/pages/invoices/recurring/manage/next_invoice_block.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div data-oob="next_invoice_block"
2-
hx-swap-oob='outerHTML:div[data-oob="next_invoice_block"]'
2+
{% if swap %}hx-swap-oob='outerHTML:div[data-oob="next_invoice_block"]'{% endif %}
33
class="card bg-base-100 shadow-xl w-full p-10 flex-row gap-x-4 mt-4">
44
<div class="card-body p-0">
55
<h1 class="text-2xl font-bold">Next Invoice</h1>

0 commit comments

Comments
 (0)