wip
This commit is contained in:
		| @@ -73,6 +73,28 @@ | ||||
| 						processed_last_submit = true; | ||||
| 					}); | ||||
| 			} else if (type === "anonymous") { | ||||
| 				let postdata = { | ||||
| 					amount: amount_cent, | ||||
| 					paidAmount: 0, | ||||
| 				}; | ||||
| 				if (is_paid) { | ||||
| 					postdata.paidAmount = amount_cent; | ||||
| 				} | ||||
| 				DonationService.donationControllerPostFixed(postdata) | ||||
| 					.then((result) => { | ||||
| 						amount_input = 0; | ||||
| 						modal_open = false; | ||||
| 						// | ||||
| 						toast.dismiss(); | ||||
| 						toast.success($_("donation_added")); | ||||
| 						dispatch("created", { donations: [result] }); | ||||
| 					}) | ||||
| 					.catch((err) => { | ||||
| 						// | ||||
| 					}) | ||||
| 					.finally(() => { | ||||
| 						processed_last_submit = true; | ||||
| 					}); | ||||
| 			} else if (type === "distance") { | ||||
| 				let postdata = { | ||||
| 					donor, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user