From c03f453fda751c8454b1ffc4d595b8717e75533a Mon Sep 17 00:00:00 2001 From: Natsumi Date: Mon, 21 Oct 2024 12:14:46 +1300 Subject: [PATCH] n_users -> userCount --- html/src/app.js | 8 ++++---- html/src/index.pug | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/html/src/app.js b/html/src/app.js index 92638af6..e99ba4ea 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -1245,7 +1245,7 @@ speechSynthesis.getVoices(); this.closedAt = this.instance.closedAt; } this.isHardClosed = this.instance.hardClose === true; - this.occupants = this.instance.n_users; + this.occupants = this.instance.userCount; if (this.location === $app.lastLocation.location) { // use gameLog for occupants when in same location this.occupants = $app.lastLocation.playerList.size; @@ -2793,7 +2793,7 @@ speechSynthesis.getVoices(); hasCapacityForYou: true, // not present depending on endpoint capacity: 0, recommendedCapacity: 0, - userCount: 0, // PC only? + userCount: 0, queueEnabled: false, // only present with group instance type queueSize: 0, // only present when queuing is enabled platforms: {}, @@ -19615,7 +19615,7 @@ speechSynthesis.getVoices(); } // sort by number of users when no friends in instance if (a.users.length === 0 && b.users.length === 0) { - if (a.ref?.n_users < b.ref?.n_users) { + if (a.ref?.userCount < b.ref?.userCount) { return 1; } return -1; @@ -19773,7 +19773,7 @@ speechSynthesis.getVoices(); } // sort by number of users when no friends in instance if (a.users.length === 0 && b.users.length === 0) { - if (a.ref?.n_users < b.ref?.n_users) { + if (a.ref?.userCount < b.ref?.userCount) { return 1; } return -1; diff --git a/html/src/index.pug b/html/src/index.pug index e34f5f7d..63519974 100644 --- a/html/src/index.pug +++ b/html/src/index.pug @@ -200,7 +200,7 @@ html .detail span.name span(v-text="ref.group.name") - span(style="font-weight:normal;margin-left:5px") ({{ ref.instance.n_users }}/{{ ref.instance.capacity }}) + span(style="font-weight:normal;margin-left:5px") ({{ ref.instance.userCount }}/{{ ref.instance.capacity }}) location.extra(:location="ref.instance.location" :link="false")