Skip to content

Commit

Permalink
Fix the delete button in the reporting management dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
dokmic committed Jul 22, 2021
1 parent 14ca699 commit ef8343c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions x-pack/plugins/reporting/public/management/report_listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class ReportListingUi extends Component<Props, State> {
<MigrateIlmPolicyCallOut toasts={this.props.toasts} />

<EuiSpacer size={'l'} />
{this.renderTable()}
<div>{this.renderTable()}</div>

<EuiSpacer size="s" />
<EuiFlexGroup justifyContent="flexEnd">
Expand Down Expand Up @@ -489,6 +489,14 @@ class ReportListingUi extends Component<Props, State> {

return (
<Fragment>
{this.state.selectedJobs.length > 0 && (
<Fragment>
<EuiFlexGroup alignItems="center" justifyContent="flexStart" gutterSize="m">
<EuiFlexItem grow={false}>{this.renderDeleteButton()}</EuiFlexItem>
</EuiFlexGroup>
<EuiSpacer size="l" />
</Fragment>
)}
<EuiBasicTable
tableCaption={i18n.translate('xpack.reporting.listing.table.captionDescription', {
defaultMessage: 'Reports generated in Kibana applications',
Expand All @@ -514,7 +522,6 @@ class ReportListingUi extends Component<Props, State> {
onChange={this.onTableChange}
data-test-subj="reportJobListing"
/>
{this.state.selectedJobs.length > 0 ? this.renderDeleteButton() : null}
</Fragment>
);
}
Expand Down

0 comments on commit ef8343c

Please sign in to comment.