Add message when connection failed when trying to vote.

This commit is contained in:
Ajay Ramachandran
2019-07-20 13:26:55 -04:00
parent b319729da8
commit 4bb6cd0dcf
3 changed files with 17 additions and 2 deletions

View File

@@ -400,6 +400,9 @@ function vote(type, UUID) {
} else if (response.successType == 0) {
//failure: duplicate vote
addVoteMessage("You have already voted this way before.", UUID)
} else if (response.successType == -1) {
//failure: duplicate vote
addVoteMessage("A connection error has occured.", UUID)
}
}
});