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() {
|
||||
this.updateMonkeysRunning().then(res => this.getZeroTrustReportFromServer(res));
|
||||
this.updatePageState();
|
||||
setInterval(this.updatePageState, 8000)
|
||||
}
|
||||
|
||||
updateMonkeysRunning = () => {
|
||||
|
@ -37,6 +38,10 @@ class ZeroTrustReportPageComponent extends AuthComponent {
|
|||
});
|
||||
};
|
||||
|
||||
updatePageState = () => {
|
||||
this.updateMonkeysRunning().then(res => this.getZeroTrustReportFromServer(res));
|
||||
};
|
||||
|
||||
render() {
|
||||
let content;
|
||||
if (this.state.runStarted) {
|
||||
|
|
Loading…
Reference in New Issue