likes and dislikes changable if citizen changes oppinion

This commit is contained in:
2026-04-20 15:06:07 +02:00
parent 8151390835
commit a37c1ffe01
2 changed files with 46 additions and 12 deletions

View File

@@ -572,6 +572,13 @@ function voteContribution(contributionId, voteType) {
return;
}
// Show Feedback based on Vote Action
if (response.action === 'removed') {
Swal.fire({ title: 'Bewertung zurückgenommen', icon: 'info', timer: 1500, showConfirmButton: false });
} else if (response.action === 'changed') {
Swal.fire({ title: 'Bewertung verändert', icon: 'success', timer: 1500, showConfirmButton: false });
}
// Updates Vote Counts in the Popup without reloading everything
loadContributions();
});