likes and dislikes changable if citizen changes oppinion
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user