mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Merge 48ab50b9af into 10f8967023
This commit is contained in:
commit
5690f7076f
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user