mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[ML] Disabling results buttons on row select (#21144)
This commit is contained in:
parent
92dd341f5c
commit
f3d88c9fbf
3 changed files with 23 additions and 12 deletions
|
@ -9,8 +9,7 @@ import PropTypes from 'prop-types';
|
|||
import React from 'react';
|
||||
|
||||
import {
|
||||
EuiIcon,
|
||||
EuiLink,
|
||||
EuiButtonIcon,
|
||||
} from '@elastic/eui';
|
||||
|
||||
import chrome from 'ui/chrome';
|
||||
|
@ -39,13 +38,19 @@ export function ResultLinks({ jobs }) {
|
|||
return (
|
||||
<React.Fragment>
|
||||
{(jobs.length < 2) &&
|
||||
<EuiLink href={getLink('timeseriesexplorer', jobs)} >
|
||||
<EuiIcon type="stats" />
|
||||
</EuiLink>
|
||||
<EuiButtonIcon
|
||||
href={getLink('timeseriesexplorer', jobs)}
|
||||
iconType="stats"
|
||||
aria-label="View results in single metric viewer"
|
||||
className="results-button"
|
||||
/>
|
||||
}
|
||||
<EuiLink href={getLink('explorer', jobs)} >
|
||||
<EuiIcon type="tableOfContents" />
|
||||
</EuiLink>
|
||||
<EuiButtonIcon
|
||||
href={getLink('explorer', jobs)}
|
||||
iconType="tableOfContents"
|
||||
aria-label="View results in anomaly explorer"
|
||||
className="results-button"
|
||||
/>
|
||||
<div className="actions-border"/>
|
||||
</React.Fragment>
|
||||
);
|
||||
|
|
|
@ -75,11 +75,17 @@
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
.euiTableCellContent .euiLink {
|
||||
.results-button {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.euiTableRow-isSelected {
|
||||
.results-button {
|
||||
color: silver;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
.euiContextMenuItem .euiIcon {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
}
|
||||
|
||||
|
||||
.euiLink {
|
||||
margin-right: 10px;
|
||||
.results-button {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.euiContextMenuPanel {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue