Formatting

ref #79
This commit is contained in:
Nicolai Ort 2021-02-25 15:05:27 +01:00
parent 63e02492e8
commit f09e58c69c
3 changed files with 11 additions and 8 deletions

View File

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