Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Polish voting page - Closes #344 #384

Merged
merged 10 commits into from
Jun 12, 2017
2 changes: 1 addition & 1 deletion src/components/delegates/delegates.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ delegates {
background-color: rgb(255, 228, 220);
}
.pending {
background-color: #eaeae9;
background-color: rgb(204, 231, 236);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Highlight voted delegate row in blue (similarly to currently used red/green)

This was supposed to mean something else. Sorry that my description was ambiguous. Pending votes should stay gray, but not pending placed votes should be blue. That is the state when the checkbox is checked and (currently) the background is white.

Also, I personally find the blue you chose bit too greenish, I like more something like #d6f0ff

}

md-card-title {
Expand Down
2 changes: 1 addition & 1 deletion src/components/delegates/delegates.pug
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ div.offline-hide
td(md-cell, colspan='6') No delegates found
tr(md-row, ng-repeat="delegate in ($ctrl.filteredDelegates = ($ctrl.delegates | filter : {username: search} )) | limitTo : $ctrl.delegatesDisplayedCount", ng-class='{"downvote": delegate.status.voted && !delegate.status.selected, "upvote": !delegate.status.voted && delegate.status.selected, "pending": delegate.status.pending}')
td(md-cell)
md-checkbox(ng-model='delegate.status.selected', ng-change='$ctrl.selectionChange(delegate)', ng-disabled='delegate.status.pending', aria-label='delegate selected for voting')
md-checkbox.md-primary(ng-model='delegate.status.selected', ng-change='$ctrl.selectionChange(delegate)', ng-disabled='delegate.status.pending', aria-label='delegate selected for voting')
td(md-cell, ng-bind='delegate.rank')
td(md-cell, ng-bind='delegate.username')
td(md-cell, ng-bind='delegate.address')
Expand Down
2 changes: 1 addition & 1 deletion src/components/delegates/vote.pug
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ div.dialog-vote(aria-label='Vote for delegates')
md-dialog-actions(layout='row')
md-button(ng-click="$ctrl.$mdDialog.cancel()") Cancel
span(flex)
md-button.md-primary.md-raised.submit-button(ng-disabled='!$ctrl.canVote()', ng-click="$ctrl.vote()") {{$ctrl.votingInProgress ? 'Voting...' : 'Confirm vote'}}
md-button.md-primary.md-raised.submit-button(ng-disabled='!$ctrl.canVote()', ng-click="$ctrl.vote()") {{$ctrl.votingInProgress ? 'Voting...' : 'Confirm'}}