Post endpoints for delete and cancel, and improvements to the details views for Offers and Civil Bonds.
I changed the endpoints in each controller from @GetMapping to @PostMapping. While testing the new code I fixed some issues I noticed:
1.The progress bars in the details view for each bonds doesn't change after an offer is cancelled:
2.Because we allow the user to see archived offers/allocations/payments, the count displayed for all of the offers/allocations/payments was incorrect - it showed all of them instead of only the active ones (for example even if you deleted a offer it would still show the count as 1, even though there was no active offer):
3.In the details view for an offer (with the old code) it displayed the payments and allocations even if the user deleted them (they are archived)

Edited by Трајковски Андреј