mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[ML] Disabling results buttons on job multi-select (#21209)
This commit is contained in:
parent
cd605e5bc1
commit
50b9630748
3 changed files with 12 additions and 8 deletions
|
@ -203,10 +203,12 @@ export class JobsList extends Component {
|
|||
},
|
||||
};
|
||||
|
||||
const selectedJobsClass = (this.props.selectedJobsCount) ? 'jobs-selected' : '';
|
||||
|
||||
return (
|
||||
<EuiBasicTable
|
||||
itemId="id"
|
||||
className="jobs-list-table"
|
||||
className={`jobs-list-table ${selectedJobsClass}`}
|
||||
items={pageOfItems}
|
||||
columns={columns}
|
||||
pagination={pagination}
|
||||
|
@ -230,4 +232,5 @@ JobsList.propTypes = {
|
|||
showDeleteJobModal: PropTypes.func.isRequired,
|
||||
showStartDatafeedModal: PropTypes.func.isRequired,
|
||||
refreshJobs: PropTypes.func.isRequired,
|
||||
selectedJobsCount: PropTypes.number.isRequired,
|
||||
};
|
||||
|
|
|
@ -79,13 +79,6 @@
|
|||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.euiTableRow-isSelected {
|
||||
.results-button {
|
||||
color: silver;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
.euiContextMenuItem .euiIcon {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
@ -108,3 +101,10 @@
|
|||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.jobs-list-table.jobs-selected {
|
||||
.results-button {
|
||||
color: silver;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -280,6 +280,7 @@ export class JobsListView extends Component {
|
|||
showDeleteJobModal={this.showDeleteJobModal}
|
||||
showStartDatafeedModal={this.showStartDatafeedModal}
|
||||
refreshJobs={() => this.refreshJobSummaryList(true)}
|
||||
selectedJobsCount={this.state.selectedJobs.length}
|
||||
/>
|
||||
<EditJobFlyout
|
||||
setShowFunction={this.setShowEditJobFlyoutFunction}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue