forked from p34709852/monkey
Now periodically updating the report.
This commit is contained in:
parent
bf417ab01d
commit
3fef55eefa
|
@ -25,7 +25,8 @@ class ZeroTrustReportPageComponent extends AuthComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.updateMonkeysRunning().then(res => this.getZeroTrustReportFromServer(res));
|
this.updatePageState();
|
||||||
|
setInterval(this.updatePageState, 8000)
|
||||||
}
|
}
|
||||||
|
|
||||||
updateMonkeysRunning = () => {
|
updateMonkeysRunning = () => {
|
||||||
|
@ -37,6 +38,10 @@ class ZeroTrustReportPageComponent extends AuthComponent {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
updatePageState = () => {
|
||||||
|
this.updateMonkeysRunning().then(res => this.getZeroTrustReportFromServer(res));
|
||||||
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let content;
|
let content;
|
||||||
if (this.state.runStarted) {
|
if (this.state.runStarted) {
|
||||||
|
|
Loading…
Reference in New Issue