Loading now stops if not on AWS
This commit is contained in:
parent
5018afb48b
commit
e4e2948941
|
@ -92,6 +92,7 @@
|
||||||
"react-toggle": "^4.0.1",
|
"react-toggle": "^4.0.1",
|
||||||
"redux": "^4.0.0",
|
"redux": "^4.0.0",
|
||||||
"sha3": "^2.0.0",
|
"sha3": "^2.0.0",
|
||||||
"react-spinners": "^0.5.4"
|
"react-spinners": "^0.5.4",
|
||||||
|
"@emotion/core": "^10.0.10"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import { css } from '@emotion/core';
|
||||||
import {Button, Col, Well, Nav, NavItem, Collapse, Form, FormControl, FormGroup} from 'react-bootstrap';
|
import {Button, Col, Well, Nav, NavItem, Collapse, Form, FormControl, FormGroup} from 'react-bootstrap';
|
||||||
import CopyToClipboard from 'react-copy-to-clipboard';
|
import CopyToClipboard from 'react-copy-to-clipboard';
|
||||||
import GridLoader from 'react-spinners/GridLoader';
|
import GridLoader from 'react-spinners/GridLoader';
|
||||||
|
@ -92,6 +93,8 @@ class RunMonkeyPageComponent extends AuthComponent {
|
||||||
} else {
|
} else {
|
||||||
this.setState({isOnAws: true, awsMachines: res['instances'], isAwsAuth: res['auth'], isLoadingAws: false});
|
this.setState({isOnAws: true, awsMachines: res['instances'], isAwsAuth: res['auth'], isLoadingAws: false});
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.setState({isOnAws: false, isLoadingAws: false});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue