This commit is contained in:
Aurastic 2026-05-08 15:22:02 +05:30 committed by GitHub
commit 5690f7076f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -806,9 +806,11 @@ class TeamDropdown extends preact.Component<{ format: string }> {
this.teamKey = this.getDefaultTeam(teamFormat);
}
const team = PS.teams.byKey[this.teamKey] || null;
const isDisabled = !!(PS.mainmenu.teamSent || PS.mainmenu.search.searching.length);
return <button
name="team" value={this.teamKey}
class="select teamselect" data-href="/teamdropdown" data-format={teamFormat} onChange={this.change}
disabled={isDisabled}
>
{PS.roomTypes['teamdropdown'] && <TeamBox team={team} noLink />}
</button>;