mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2026-02-06 02:06:29 +01:00
server/port input only shows when gc enabled
This commit is contained in:
@@ -145,6 +145,8 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
|||||||
<Checkbox id="enableGC" label={this.state.checkboxLabel} onChange={this.toggleGrasscutter} checked={this.state.grasscutterEnabled}/>
|
<Checkbox id="enableGC" label={this.state.checkboxLabel} onChange={this.toggleGrasscutter} checked={this.state.grasscutterEnabled}/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{
|
||||||
|
this.state.grasscutterEnabled && (
|
||||||
<div className="ServerConfig">
|
<div className="ServerConfig">
|
||||||
<TextInput id="ip" key="ip" placeholder={this.state.ipPlaceholder} onChange={this.setIp} />
|
<TextInput id="ip" key="ip" placeholder={this.state.ipPlaceholder} onChange={this.setIp} />
|
||||||
<TextInput style={{
|
<TextInput style={{
|
||||||
@@ -152,6 +154,9 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
|
|||||||
}} id="port" key="port" placeholder={this.state.portPlaceholder} onChange={this.setPort}/>
|
}} id="port" key="port" placeholder={this.state.portPlaceholder} onChange={this.setPort}/>
|
||||||
<HelpButton contents="Ensure this is the Dispatch server port, not the Game server port. This is almost always '443'." />
|
<HelpButton contents="Ensure this is the Dispatch server port, not the Game server port. This is almost always '443'." />
|
||||||
</div>
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
<div className="ServerLaunchButtons">
|
<div className="ServerLaunchButtons">
|
||||||
<BigButton onClick={this.playGame} id="officialPlay">{this.state.buttonLabel}</BigButton>
|
<BigButton onClick={this.playGame} id="officialPlay">{this.state.buttonLabel}</BigButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user