mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add eslint rule padding-line-between-statements (#1593)
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
1 parent
7b77f18376
commit
dcf253e7d5
401 files changed
+2018
-40
No files matched your search
@@ -19,6 +19,7 @@ export class AppInit extends React.Component<Props> {
|
||||
|
||||
protected static async readyStateCheck(rootElem: HTMLElement) {
|
||||
const waitingList = await apiBase.get<string[]>("/ready");
|
||||
|
||||
if (waitingList.length > 0) {
|
||||
// update waiting state
|
||||
render(<AppInit serviceWaitingList={waitingList}/>, rootElem);
|
||||
@@ -26,6 +27,7 @@ export class AppInit extends React.Component<Props> {
|
||||
// check again in 1-5 seconds
|
||||
return new Promise(resolve => {
|
||||
const timeoutDelay = 1000 + Math.random() * 4000;
|
||||
|
||||
setTimeout(() => resolve(AppInit.readyStateCheck(rootElem)), timeoutDelay);
|
||||
});
|
||||
}
|
||||
@@ -34,6 +36,7 @@ export class AppInit extends React.Component<Props> {
|
||||
render() {
|
||||
const { serviceWaitingList = [] } = this.props;
|
||||
const serviceNames = serviceWaitingList.join(", ");
|
||||
|
||||
return (
|
||||
<div className="AppInit flex column center">
|
||||
<div className="box flex column gaps">
|
||||
|
||||
Reference in new issue
Block a user