mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 21:33:08 +01:00
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user