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

Commit

Permalink
fix(scoring): tourmanent scoring should behave more consistently now.…
Browse files Browse the repository at this point in the history
… also, matches that are too far in the past can no longer be scored as a result of this.

the pointer icon has also been moved to the icon instead of being on the whole row, as that causes a bad association between clickability and not

closes #110
  • Loading branch information
seiyria committed Dec 14, 2015
1 parent 02ec6e6 commit e858b31
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/js/controllers/tournaments/inProgressCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,9 @@ site.controller('inProgressController', ($scope, $timeout, EnsureLoggedIn, Sideb
$scope.getName = (idx) => TournamentInformation.playerName($scope.bucket[idx]);

$scope.invalidMatch = (match) => !$scope.trn.isPlayable(match);

$scope.scoresEqual = (match) => {
if(match.score && match.score.length === 1 || _.filter(match.score, _.isNumber).length !== match.p.length) return true;
const sorted = _.sortBy(match.score).reverse();
return sorted[0] === sorted[1];
return $scope.trn.unscorable(match.id, match.score);
};

$scope.confirmScore = (match) => {
Expand Down
6 changes: 5 additions & 1 deletion src/scss/site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,11 @@ station {
}

.confirm-score {
cursor: pointer;

ng-md-icon[icon="check_circle"] {
cursor: pointer;
}

@include all-widths(24px);
}

Expand Down

0 comments on commit e858b31

Please sign in to comment.