aboutsummaryrefslogtreecommitdiff
path: root/src/data.js
diff options
context:
space:
mode:
authorKaran Jayachandra <me@karanj.com>2025-11-15 15:48:19 +0100
committerKaran Jayachandra <me@karanj.com>2025-11-15 15:48:19 +0100
commit63c405504466bdadb64dfb3017bbfa942d7330f3 (patch)
treecacc0cb661494525f626521c60cff166eb7c22b6 /src/data.js
parent202cf761e5162720f25521a75ae7cd6a4e0e5456 (diff)
parentcabac66d56e8912941cef976d69a4fd3ec9ad928 (diff)
Merge branch 'develop' into 'main'
Working on improving tables See merge request KaranJayachandra/match_up!22
Diffstat (limited to 'src/data.js')
-rw-r--r--src/data.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/data.js b/src/data.js
index 4358ee6..589b5a3 100644
--- a/src/data.js
+++ b/src/data.js
@@ -45,7 +45,7 @@ const guestCategories = {
};
export class Guest extends Switch {
- maxCount = 4;
+ maxCount = 6;
categoryCount = 3;
constructor(id, status, games) {
@@ -82,14 +82,15 @@ export class Game extends Switch {
this.teamTwo = teamTwo;
}
print() {
- super.print();
let teamOne = this.teamOne.playerOne + " and " + this.teamOne.playerTwo;
let teamTwo = this.teamTwo.playerOne + " and " + this.teamTwo.playerTwo;
- console.log(teamOne + " is playing against " + teamTwo);
+ console.log(
+ "Game " + this.id + ": " + teamOne + " is playing against " + teamTwo
+ );
}
render() {
let blockedState = this.teamOne.playerOne === "RESERVED";
- let type = blockedState ? `class="is-danger is-dark"` : ``;
+ let type = blockedState ? `class="is-dark"` : ``;
let court = `<td style="width: 8%; text-align: center;">${
this.id + 1
}</td>`;