|
@@ -75,7 +75,6 @@ class ReplicasPage extends React.Component {
|
|
|
document.title = 'Coriolis Replicas'
|
|
document.title = 'Coriolis Replicas'
|
|
|
|
|
|
|
|
ProjectActions.getProjects()
|
|
ProjectActions.getProjects()
|
|
|
- ReplicaActions.getReplicas()
|
|
|
|
|
EndpointActions.getEndpoints()
|
|
EndpointActions.getEndpoints()
|
|
|
|
|
|
|
|
this.pollData()
|
|
this.pollData()
|
|
@@ -114,7 +113,6 @@ class ReplicasPage extends React.Component {
|
|
|
ProjectActions.getProjects()
|
|
ProjectActions.getProjects()
|
|
|
ReplicaActions.getReplicas()
|
|
ReplicaActions.getReplicas()
|
|
|
EndpointActions.getEndpoints()
|
|
EndpointActions.getEndpoints()
|
|
|
- this.pollData()
|
|
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
UserActions.switchProject(project.id)
|
|
UserActions.switchProject(project.id)
|
|
@@ -124,7 +122,6 @@ class ReplicasPage extends React.Component {
|
|
|
ProjectActions.getProjects()
|
|
ProjectActions.getProjects()
|
|
|
ReplicaActions.getReplicas({ showLoading: true })
|
|
ReplicaActions.getReplicas({ showLoading: true })
|
|
|
EndpointActions.getEndpoints()
|
|
EndpointActions.getEndpoints()
|
|
|
- this.pollData()
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
handleItemClick(item) {
|
|
handleItemClick(item) {
|
|
@@ -169,11 +166,9 @@ class ReplicasPage extends React.Component {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
pollData() {
|
|
pollData() {
|
|
|
- Wait.for(() => this.props.replicaStore.replicas.length !== 0, () => {
|
|
|
|
|
- ReplicaActions.getReplicasExecutions(this.props.replicaStore.replicas)
|
|
|
|
|
- Wait.for(() => !this.props.replicaStore.replicasExecutionsLoading, () => {
|
|
|
|
|
- this.pollTimeout = setTimeout(() => { this.pollData() }, requestPollTimeout)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ ReplicaActions.getReplicas()
|
|
|
|
|
+ Wait.for(() => !this.props.replicaStore.backgroundLoading, () => {
|
|
|
|
|
+ this.pollTimeout = setTimeout(() => { this.pollData() }, requestPollTimeout)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|