Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Fix start process #655
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunkat committed Apr 20, 2017
1 parent 96ff161 commit ac9541a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 7 additions & 1 deletion src/components/app/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ class Modal extends Component {
});
}

setFetchOnTrue = () => {
this.setState({
waitingFetch: true
});
}

handleStart = () => {
const {dispatch, layout, windowType, indicator} = this.props;

Expand Down Expand Up @@ -321,11 +327,11 @@ class Modal extends Component {

return(
<OverlayField
handleStart={this.handleStart}
type={windowType}
disabled={pending}
data={data}
layout={layout}
setFetchOnTrue={this.setFetchOnTrue}
/>
)
}
Expand Down
6 changes: 2 additions & 4 deletions src/components/app/OverlayField.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ import {
class OverlayField extends Component {

handleKeyDown = (e) => {
const {handleStart} = this.props;
const {setFetchOnTrue} = this.props;
switch(e.key) {
case 'Enter':
document.activeElement.blur();
setTimeout(() => {
handleStart();
}, 1000);
setFetchOnTrue();
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ class Header extends Component {
/>}

<GlobalContextShortcuts
handleSidelistToggle={(id) =>
handleSidelistToggle={(id) =>
this.handleSidelistToggle(id, sideListTab)}
handleMenuOverlay={isMenuOverlayShow ?
() => this.handleMenuOverlay('', '') :
Expand Down

0 comments on commit ac9541a

Please sign in to comment.