parent
63e02492e8
commit
f09e58c69c
@ -151,16 +151,19 @@
|
|||||||
class="ml-4 text-indigo-600 hover:text-indigo-900 cursor-pointer">{$_('cancel-delete')}</button>
|
class="ml-4 text-indigo-600 hover:text-indigo-900 cursor-pointer">{$_('cancel-delete')}</button>
|
||||||
<button
|
<button
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
DonationService.donationControllerRemove(donation.id, false)
|
DonationService.donationControllerRemove(donation.id, false).then(
|
||||||
.then((resp) => {
|
(resp) => {
|
||||||
current_donations = current_donations.filter((obj) => obj.id !== donation.id);
|
current_donations = current_donations.filter(
|
||||||
|
(obj) => obj.id !== donation.id
|
||||||
|
);
|
||||||
Toastify({
|
Toastify({
|
||||||
text: 'Donation deleted',
|
text: 'Donation deleted',
|
||||||
duration: 500,
|
duration: 500,
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
'linear-gradient(to right, #00b09b, #96c93d)',
|
'linear-gradient(to right, #00b09b, #96c93d)',
|
||||||
}).showToast();
|
}).showToast();
|
||||||
})
|
}
|
||||||
|
);
|
||||||
}}
|
}}
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
class="ml-4 text-red-600 hover:text-red-900 cursor-pointer">{$_('confirm-delete')}</button>
|
class="ml-4 text-red-600 hover:text-red-900 cursor-pointer">{$_('confirm-delete')}</button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user