forked from p34709852/monkey
Merge branch '400/zero-trust-mvp' into 400/more-tests
This commit is contained in:
commit
c60f393dbe
|
@ -8,11 +8,9 @@ import SinglePillarRecommendationsStatus from "../report-components/zerotrust/Si
|
||||||
import MonkeysStillAliveWarning from "../report-components/common/MonkeysStillAliveWarning";
|
import MonkeysStillAliveWarning from "../report-components/common/MonkeysStillAliveWarning";
|
||||||
import ReportLoader from "../report-components/common/ReportLoader";
|
import ReportLoader from "../report-components/common/ReportLoader";
|
||||||
import MustRunMonkeyWarning from "../report-components/common/MustRunMonkeyWarning";
|
import MustRunMonkeyWarning from "../report-components/common/MustRunMonkeyWarning";
|
||||||
import StatusesToPillarsSummary from "../report-components/zerotrust/StatusesToPillarsSummary";
|
|
||||||
import PrintReportButton from "../report-components/common/PrintReportButton";
|
import PrintReportButton from "../report-components/common/PrintReportButton";
|
||||||
import {extractExecutionStatusFromServerResponse} from "../report-components/common/ExecutionStatus";
|
import {extractExecutionStatusFromServerResponse} from "../report-components/common/ExecutionStatus";
|
||||||
import ZeroTrustReportLegend from "../report-components/zerotrust/ReportLegend";
|
import ZeroTrustReportLegend from "../report-components/zerotrust/ReportLegend";
|
||||||
import {ZeroTrustStatuses} from "../report-components/zerotrust/ZeroTrustPillars";
|
|
||||||
|
|
||||||
class ZeroTrustReportPageComponent extends AuthComponent {
|
class ZeroTrustReportPageComponent extends AuthComponent {
|
||||||
|
|
||||||
|
@ -27,7 +25,14 @@ class ZeroTrustReportPageComponent extends AuthComponent {
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.updatePageState();
|
this.updatePageState();
|
||||||
setInterval(this.updatePageState, 8000)
|
const refreshInterval = setInterval(this.updatePageState, 8000)
|
||||||
|
this.setState(
|
||||||
|
{refreshDataIntervalHandler: refreshInterval}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
componentWillUnmount() {
|
||||||
|
clearInterval(this.state.refreshDataIntervalHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateMonkeysRunning = () => {
|
updateMonkeysRunning = () => {
|
||||||
|
|
Loading…
Reference in New Issue