Island UI: implement scenario/mode reset upon starting over

This commit is contained in:
VakarisZ 2021-07-15 10:09:19 +03:00
parent 4dc138ca48
commit dae669282d
1 changed files with 9 additions and 6 deletions

View File

@ -38,11 +38,11 @@ class StartOverPageComponent extends AuthComponent {
<Col sm={{offset: 3, span: 9}} md={{offset: 3, span: 9}} <Col sm={{offset: 3, span: 9}} md={{offset: 3, span: 9}}
lg={{offset: 3, span: 9}} xl={{offset: 2, span: 7}} lg={{offset: 3, span: 9}} xl={{offset: 2, span: 7}}
className={'main'}> className={'main'}>
<StartOverModal cleaned = {this.state.cleaned} <StartOverModal cleaned={this.state.cleaned}
showCleanDialog = {this.state.showCleanDialog} showCleanDialog={this.state.showCleanDialog}
allMonkeysAreDead = {this.state.allMonkeysAreDead} allMonkeysAreDead={this.state.allMonkeysAreDead}
onVerify = {this.cleanup} onVerify={this.cleanup}
onClose = {this.closeModal}/> onClose={this.closeModal}/>
<h1 className="page-title">Start Over</h1> <h1 className="page-title">Start Over</h1>
<div style={{'fontSize': '1.2em'}}> <div style={{'fontSize': '1.2em'}}>
<p> <p>
@ -88,7 +88,10 @@ class StartOverPageComponent extends AuthComponent {
cleaned: true cleaned: true
}); });
} }
}).then(this.updateMonkeysRunning()); }).then(() => {
this.updateMonkeysRunning();
this.props.onStatusChange();
});
}; };
closeModal = () => { closeModal = () => {