n_users -> userCount

This commit is contained in:
Natsumi
2024-10-21 12:14:46 +13:00
parent b5f4f0a30a
commit c03f453fda
2 changed files with 5 additions and 5 deletions

View File

@@ -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;

View File

@@ -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")