mirror of
https://github.com/weaveworks/scope.git
synced 2026-08-19 04:16:21 +00:00
Merge pull request #3021 from weaveworks/terminal-not-connected
Set a timeout to Terminal animation
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user