wip
This commit is contained in:
parent
09b59175ee
commit
0baf2fc460
@ -73,6 +73,28 @@
|
|||||||
processed_last_submit = true;
|
processed_last_submit = true;
|
||||||
});
|
});
|
||||||
} else if (type === "anonymous") {
|
} 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") {
|
} else if (type === "distance") {
|
||||||
let postdata = {
|
let postdata = {
|
||||||
donor,
|
donor,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user