diff --git a/interface/src/constants/Endpoints.js b/interface/src/constants/Endpoints.js
index fc6b7cc..2fc772d 100644
--- a/interface/src/constants/Endpoints.js
+++ b/interface/src/constants/Endpoints.js
@@ -13,4 +13,4 @@ export const SYSTEM_STATUS_ENDPOINT = ENDPOINT_ROOT + "systemStatus";
export const SIGN_IN_ENDPOINT = ENDPOINT_ROOT + "signIn";
export const VERIFY_AUTHORIZATION_ENDPOINT = ENDPOINT_ROOT + "verifyAuthorization";
export const SECURITY_SETTINGS_ENDPOINT = ENDPOINT_ROOT + "securitySettings";
-export const RESET_ENDPOINT = ENDPOINT_ROOT + "reset";
+export const RESTART_ENDPOINT = ENDPOINT_ROOT + "restart";
diff --git a/interface/src/containers/SystemStatus.js b/interface/src/containers/SystemStatus.js
index ba7e317..b502cfd 100644
--- a/interface/src/containers/SystemStatus.js
+++ b/interface/src/containers/SystemStatus.js
@@ -22,7 +22,7 @@ import DataUsageIcon from '@material-ui/icons/DataUsage';
import AutorenewIcon from '@material-ui/icons/Autorenew';
import RefreshIcon from '@material-ui/icons/Refresh';
-import { SYSTEM_STATUS_ENDPOINT, RESET_ENDPOINT } from '../constants/Endpoints';
+import { SYSTEM_STATUS_ENDPOINT, RESTART_ENDPOINT } from '../constants/Endpoints';
import { restComponent } from '../components/RestComponent';
import LoadingNotification from '../components/LoadingNotification';
import SectionContent from '../components/SectionContent';
@@ -42,7 +42,7 @@ class SystemStatus extends Component {
super(props);
this.state = {
- confirmReset: false,
+ confirmRestart: false,
processing: false
}
}
@@ -112,53 +112,53 @@ class SystemStatus extends Component {
} variant="contained" color="secondary" className={classes.button} onClick={this.props.loadData}>
Refresh
- } variant="contained" color="secondary" className={classes.button} onClick={this.onReset}>
- Reset
+ } variant="contained" color="secondary" className={classes.button} onClick={this.onRestart}>
+ Restart
);
}
- onReset = () => {
- this.setState({ confirmReset: true });
+ onRestart = () => {
+ this.setState({ confirmRestart: true });
}
- onResetRejected = () => {
- this.setState({ confirmReset: false });
+ onRestartRejected = () => {
+ this.setState({ confirmRestart: false });
}
- onResetConfirmed = () => {
+ onRestartConfirmed = () => {
this.setState({ processing: true });
- redirectingAuthorizedFetch(RESET_ENDPOINT, { method: 'POST' })
+ redirectingAuthorizedFetch(RESTART_ENDPOINT, { method: 'POST' })
.then(response => {
if (response.status === 200) {
- this.props.enqueueSnackbar("Device is resetting", { variant: 'info' });
- this.setState({ processing: false, confirmReset: false });
+ this.props.enqueueSnackbar("Device is restarting", { variant: 'info' });
+ this.setState({ processing: false, confirmRestart: false });
} else {
throw Error("Invalid status code: " + response.status);
}
})
.catch(error => {
- this.props.enqueueSnackbar(error.message || "Problem resetting device", { variant: 'error' });
- this.setState({ processing: false, confirmReset: false });
+ this.props.enqueueSnackbar(error.message || "Problem restarting device", { variant: 'error' });
+ this.setState({ processing: false, confirmRestart: false });
});
}
- renderResetDialog() {
+ renderRestartDialog() {
return (