refactor: drop toast(s) custom event as toasts listen to updated now

This commit is contained in:
Herculino Trotta
2024-11-30 00:35:20 -03:00
parent 73678aacab
commit da10f461a6
14 changed files with 49 additions and 49 deletions

View File

@@ -40,7 +40,7 @@ def transaction_add(request):
return HttpResponse(
status=204,
headers={"HX-Trigger": "updated, hide_offcanvas, toast"},
headers={"HX-Trigger": "updated, hide_offcanvas"},
)
else:
form = TransactionForm(
@@ -71,7 +71,7 @@ def transaction_edit(request, transaction_id, **kwargs):
return HttpResponse(
status=204,
headers={"HX-Trigger": "updated, hide_offcanvas, toast"},
headers={"HX-Trigger": "updated, hide_offcanvas"},
)
else:
form = TransactionForm(instance=transaction)
@@ -96,7 +96,7 @@ def transaction_delete(request, transaction_id, **kwargs):
return HttpResponse(
status=204,
headers={"HX-Trigger": "updated, toast"},
headers={"HX-Trigger": "updated"},
)
@@ -121,7 +121,7 @@ def transactions_transfer(request):
messages.success(request, _("Transfer added successfully"))
return HttpResponse(
status=204,
headers={"HX-Trigger": "updated, toast, hide_offcanvas"},
headers={"HX-Trigger": "updated, hide_offcanvas"},
)
else:
form = TransferForm(