Changed scan -> test

Re #56
This commit is contained in:
Henry Whitaker
2020-05-18 18:55:10 +01:00
parent 729c1e88d8
commit f5e3947bfd

View File

@@ -49,7 +49,7 @@ export default class LatestResults extends Component {
Axios.get(url) Axios.get(url)
.then((resp) => { .then((resp) => {
toast.info('A scan has been queued. This page will refresh when the scan has finished.'); toast.info('A test has been queued. This page will refresh when the test has finished.');
}) })
.catch((err) => { .catch((err) => {
if(err.response) { if(err.response) {
@@ -83,7 +83,7 @@ export default class LatestResults extends Component {
<Row> <Row>
<Col sm={{ span: 12 }} className="text-center"> <Col sm={{ span: 12 }} className="text-center">
<div> <div>
<Button variant="primary" onClick={this.newScan}>Start your first scan!</Button> <Button variant="primary" onClick={this.newScan}>Start your first test!</Button>
</div> </div>
</Col> </Col>
</Row> </Row>
@@ -95,8 +95,8 @@ export default class LatestResults extends Component {
<Row> <Row>
<Col sm={{ span: 12 }} className="text-center mb-2"> <Col sm={{ span: 12 }} className="text-center mb-2">
<div> <div>
<Button className="d-inline-block mx-3 mb-2" variant="primary" onClick={this.newScan}>Scan again</Button> <Button className="d-inline-block mx-3 mb-2" variant="primary" onClick={this.newScan}>Test again</Button>
<p className="text-muted mb-0 d-inline-block">Last scan performed at: {new Date(data.data.created_at).toLocaleString()}</p> <p className="text-muted mb-0 d-inline-block">Last test performed at: {new Date(data.data.created_at).toLocaleString()}</p>
</div> </div>
</Col> </Col>
</Row> </Row>