|
|
@@ -67,6 +67,8 @@ class DeploymentsPage extends React.Component<Props, State> {
|
|
|
componentDidMount() {
|
|
|
document.title = "Coriolis Deployments";
|
|
|
|
|
|
+ deploymentStore.resetDeploymentPagination();
|
|
|
+
|
|
|
projectStore.getProjects();
|
|
|
endpointStore.getEndpoints({ showLoading: true });
|
|
|
userStore.getAllUsers({
|
|
|
@@ -112,6 +114,7 @@ class DeploymentsPage extends React.Component<Props, State> {
|
|
|
}
|
|
|
|
|
|
handleProjectChange() {
|
|
|
+ deploymentStore.resetDeploymentPagination();
|
|
|
endpointStore.getEndpoints({ showLoading: true });
|
|
|
deploymentStore.getDeployments({ showLoading: true });
|
|
|
}
|
|
|
@@ -297,6 +300,19 @@ class DeploymentsPage extends React.Component<Props, State> {
|
|
|
this.setState({ selectedDeployments });
|
|
|
}}
|
|
|
dropdownActions={BulkActions}
|
|
|
+ apiPagination={{
|
|
|
+ currentPage: deploymentStore.deploymentsPage,
|
|
|
+ hasNextPage: deploymentStore.deploymentsHasNextPage,
|
|
|
+ itemsPerPage: deploymentStore.deploymentsItemsPerPage,
|
|
|
+ onPageChange: page => {
|
|
|
+ deploymentStore.setDeploymentsPage(page);
|
|
|
+ },
|
|
|
+ onItemsPerPageChange: e => {
|
|
|
+ deploymentStore.setDeploymentsItemsPerPage(
|
|
|
+ parseInt(e.target.value, 10),
|
|
|
+ );
|
|
|
+ },
|
|
|
+ }}
|
|
|
renderItemComponent={options => (
|
|
|
<TransferListItem
|
|
|
{...options}
|