Ctrl-K disponible dès la simulation

pull/481/head
Mael 2019-07-09 16:44:38 +02:00
parent f48d0af3eb
commit c76f22a39b
2 changed files with 4 additions and 2 deletions

View File

@ -35,7 +35,7 @@ export default compose(
}
close = () => this.setState({ visible: false })
render() {
let { flatRules } = this.props
let { flatRules, invisibleButton } = this.props
return this.state.visible ? (
<Overlay onClose={this.close}>
<h2>
@ -47,7 +47,7 @@ export default compose(
rules={flatRules}
/>
</Overlay>
) : (
) : invisibleButton ? null : (
<button
className="ui__ simple small button"
onClick={() => this.setState({ visible: true })}>

View File

@ -11,6 +11,7 @@ import { firstStepCompletedSelector } from 'Selectors/analyseSelectors'
import { simulationProgressSelector } from 'Selectors/progressSelectors'
import * as Animate from 'Ui/animate'
import Progress from 'Ui/Progress'
import SearchButton from 'Components/SearchButton'
export default connect(state => ({
firstStepCompleted: firstStepCompletedSelector(state),
@ -24,6 +25,7 @@ export default connect(state => ({
return (
<>
<TargetSelection />
<SearchButton invisibleButton />
{firstStepCompleted && (
<>
<Animate.fromTop>