Loading now stops if not on AWS

This commit is contained in:
Shay Nehmad 2019-04-16 19:20:24 +03:00
parent 5018afb48b
commit e4e2948941
2 changed files with 5 additions and 1 deletions

View File

@ -92,6 +92,7 @@
"react-toggle": "^4.0.1",
"redux": "^4.0.0",
"sha3": "^2.0.0",
"react-spinners": "^0.5.4"
"react-spinners": "^0.5.4",
"@emotion/core": "^10.0.10"
}
}

View File

@ -1,4 +1,5 @@
import React from 'react';
import { css } from '@emotion/core';
import {Button, Col, Well, Nav, NavItem, Collapse, Form, FormControl, FormGroup} from 'react-bootstrap';
import CopyToClipboard from 'react-copy-to-clipboard';
import GridLoader from 'react-spinners/GridLoader';
@ -92,6 +93,8 @@ class RunMonkeyPageComponent extends AuthComponent {
} else {
this.setState({isOnAws: true, awsMachines: res['instances'], isAwsAuth: res['auth'], isLoadingAws: false});
}
} else {
this.setState({isOnAws: false, isLoadingAws: false});
}
});
}