Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Fixes hidden vote down button on restrict voting (#75)
Browse files Browse the repository at this point in the history
* Fixes downvote causing validation issue on restricted voting

* Fixes hidden vote down button on restrict voting
  • Loading branch information
florianbader authored Dec 15, 2019
1 parent 07d092f commit 0bef797
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ export class VotingPageController extends Vue {
}
}

if (votingItem.myVotes > 0) {
voteDown.parentElement.classList.remove("hide");
}

if (this.actualVoting.cannotVoteForAssignedWorkItems) {
if (compareUserString(votingItem.assignedToFull, this.user)) {
voteUp.parentElement.classList.add("hide");
Expand All @@ -142,6 +138,10 @@ export class VotingPageController extends Vue {
voteDown.parentElement.classList.add("hide");
}
}

if (votingItem.myVotes > 0) {
voteDown.parentElement.classList.remove("hide");
}
}

private async initializeVotingpageAsync() {
Expand Down

0 comments on commit 0bef797

Please sign in to comment.