+ client: handle static IP while doing initial setup

This commit is contained in:
Ildar Kamalov
2020-01-30 18:26:54 +03:00
committed by Simon Zolin
parent 5c385521c4
commit cc2d953c9d
7 changed files with 119 additions and 31 deletions

View File

@@ -60,6 +60,12 @@ class Setup extends Component {
}
};
handleStaticIp = () => {
this.props.checkConfig({
set_static_ip: true,
});
};
openDashboard = (ip, port) => {
let address = getWebAddress(ip, port);
@@ -96,6 +102,7 @@ class Setup extends Component {
onChange={this.handleFormChange}
validateForm={this.handleFormChange}
handleAutofix={this.handleAutofix}
handleStaticIp={this.handleStaticIp}
/>
);
case 3:
@@ -117,6 +124,7 @@ class Setup extends Component {
step,
web,
dns,
staticIp,
interfaces,
} = this.props.install;
@@ -128,7 +136,7 @@ class Setup extends Component {
<div className="setup">
<div className="setup__container">
<img src={logo} className="setup__logo" alt="logo" />
{this.renderPage(step, { web, dns }, interfaces)}
{this.renderPage(step, { web, dns, staticIp }, interfaces)}
<Progress step={step} />
</div>
</div>