Skip to content

Commit

Permalink
Merge pull request #3021 from weaveworks/terminal-not-connected
Browse files Browse the repository at this point in the history
Set a timeout to Terminal animation
  • Loading branch information
rbruggem authored Jan 16, 2018
2 parents f42e220 + c00ab5e commit e37a147
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/app/scripts/components/embedded-terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ class EmeddedTerminal extends React.Component {
}

componentDidMount() {
setTimeout(() => {
this.mountedTimeout = setTimeout(() => {
this.setState({mounted: true});
});
this.animationTimeout = setTimeout(() => {
this.setState({ animated: true });
}, 2000);
}

componentWillUnmount() {
clearTimeout(this.mountedTimeout);
clearTimeout(this.animationTimeout);
}

getTransform() {
Expand Down

0 comments on commit e37a147

Please sign in to comment.