Skip to content

Commit

Permalink
fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Mar 10, 2020
1 parent bfb186e commit 9269039
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ export { subscribeWithScope } from 'ui/utils/subscribe_with_scope';
export { timezoneProvider } from 'ui/vis/lib/timezone';
export { tabifyAggResponse } from '../../../data/public';
export { unhashUrl } from '../../../../../plugins/kibana_utils/public';
export {
ensureDefaultIndexPattern,
} from '../../../../../plugins/kibana_legacy/public';
export { ensureDefaultIndexPattern } from '../../../../../plugins/kibana_legacy/public';

// EXPORT types
export {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,9 @@ export function DocViewTableRowBtnFilterExists({
return (
<EuiToolTip content={tooltipContent}>
<EuiButtonIcon
aria-label={i18n.translate(
'discover.docViews.table.filterForFieldPresentButtonAriaLabel',
{
defaultMessage: 'Filter for field present',
}
)}
aria-label={i18n.translate('discover.docViews.table.filterForFieldPresentButtonAriaLabel', {
defaultMessage: 'Filter for field present',
})}
onClick={onClick}
className="kbnDocViewer__actionButton"
data-test-subj="addExistsFilterButton"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,9 @@ export function DocViewTableRowBtnToggleColumn({ onClick, active, disabled = fal
if (disabled) {
return (
<EuiButtonIcon
aria-label={i18n.translate(
'discover.docViews.table.toggleColumnInTableButtonAriaLabel',
{
defaultMessage: 'Toggle column in table',
}
)}
aria-label={i18n.translate('discover.docViews.table.toggleColumnInTableButtonAriaLabel', {
defaultMessage: 'Toggle column in table',
})}
className="kbnDocViewer__actionButton"
data-test-subj="toggleColumnButton"
disabled
Expand All @@ -55,12 +52,9 @@ export function DocViewTableRowBtnToggleColumn({ onClick, active, disabled = fal
}
>
<EuiButtonIcon
aria-label={i18n.translate(
'discover.docViews.table.toggleColumnInTableButtonAriaLabel',
{
defaultMessage: 'Toggle column in table',
}
)}
aria-label={i18n.translate('discover.docViews.table.toggleColumnInTableButtonAriaLabel', {
defaultMessage: 'Toggle column in table',
})}
aria-pressed={active}
onClick={onClick}
className="kbnDocViewer__actionButton"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ import { EuiIconTip } from '@elastic/eui';
import { i18n } from '@kbn/i18n';

export function DocViewTableRowIconNoMapping() {
const ariaLabel = i18n.translate(
'discover.docViews.table.noCachedMappingForThisFieldAriaLabel',
{
defaultMessage: 'Warning',
}
);
const ariaLabel = i18n.translate('discover.docViews.table.noCachedMappingForThisFieldAriaLabel', {
defaultMessage: 'Warning',
});
const tooltipContent = i18n.translate(
'discover.docViews.table.noCachedMappingForThisFieldTooltip',
{
Expand Down

0 comments on commit 9269039

Please sign in to comment.