Add text that tells the players exactly why the total points are wrong

This commit is contained in:
Paddy committed 2022-09-10 22:36:21 +02:00
1 parent ae45cc78a1
commit cd5154a07a
2 files changed
+18 -4

No files matched your search

@@ -43,8 +43,8 @@
<td><input type="number" [(ngModel)]="this.actualPlayers[3].finalCardScore"/></td>
</tr>
</table>
<p id="score-warn" *ngIf="!totalScoreValid()">Total score doesn't add up!</p>
<button (click)="switchToNextPage()" [disabled]="!totalScoreValid()">Next</button>
<p id="score-warn" *ngIf="calculatePointSum() !== 240">Total score doesn't add up ({{getScoreDifferenceText()}})</p>
<button (click)="switchToNextPage()" [disabled]="!calculatePointSum()">Next</button>
</div>
<div id="which-solo" class="visible-{{this.currentPage === 4}}">