diff --git a/x-pack/plugins/reporting/public/components/report_listing.tsx b/x-pack/plugins/reporting/public/components/report_listing.tsx index 59a42f451b20..8bc4967d0ead 100644 --- a/x-pack/plugins/reporting/public/components/report_listing.tsx +++ b/x-pack/plugins/reporting/public/components/report_listing.tsx @@ -5,7 +5,7 @@ */ import { - EuiInMemoryTable, + EuiBasicTable, EuiPageContent, EuiSpacer, EuiText, @@ -16,7 +16,7 @@ import { i18n } from '@kbn/i18n'; import { FormattedMessage, InjectedIntl, injectI18n } from '@kbn/i18n/react'; import { get } from 'lodash'; import moment from 'moment'; -import { Component, default as React } from 'react'; +import { Component, Fragment, default as React } from 'react'; import { Subscription } from 'rxjs'; import { ApplicationStart, ToastsSetup } from 'src/core/public'; import { ILicense, LicensingPluginSetup } from '../../../licensing/public'; @@ -225,6 +225,7 @@ class ReportListingUi extends Component { throw error; } } + this.setState(() => ({ page: 0 }), this.fetchJobs); }; return ( @@ -476,34 +477,32 @@ class ReportListingUi extends Component { onSelectionChange: this.onSelectionChange, }; - const search = { - toolsRight: this.renderDeleteButton(), - }; - return ( - + + + {this.state.selectedJobs.length > 0 ? this.renderDeleteButton() : null} + ); } }