Skip to content

Commit

Permalink
[ML] Transforms: Fixes styling of preview grid pagination in summary …
Browse files Browse the repository at this point in the history
…step (#77789)
  • Loading branch information
peteharverson committed Sep 18, 2020
1 parent 97e7137 commit 246f27a
Showing 1 changed file with 16 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import React, { Fragment, FC } from 'react';

import { i18n } from '@kbn/i18n';

import { EuiCodeBlock, EuiForm, EuiFormRow, EuiSpacer, EuiText } from '@elastic/eui';
import { EuiCodeBlock, EuiForm, EuiFormRow, EuiSpacer } from '@elastic/eui';

import { dictionaryToArray } from '../../../../../../common/types/common';

Expand Down Expand Up @@ -132,23 +132,21 @@ export const StepDefineSummary: FC<Props> = ({
</EuiFormRow>

<EuiSpacer size="m" />
<EuiText>
<DataGrid
{...pivotPreviewProps}
copyToClipboard={getPivotPreviewDevConsoleStatement(previewRequest)}
copyToClipboardDescription={i18n.translate(
'xpack.transform.pivotPreview.copyClipboardTooltip',
{
defaultMessage: 'Copy Dev Console statement of the pivot preview to the clipboard.',
}
)}
dataTestSubj="transformPivotPreview"
title={i18n.translate('xpack.transform.pivotPreview.PivotPreviewTitle', {
defaultMessage: 'Transform pivot preview',
})}
toastNotifications={toastNotifications}
/>
</EuiText>
<DataGrid
{...pivotPreviewProps}
copyToClipboard={getPivotPreviewDevConsoleStatement(previewRequest)}
copyToClipboardDescription={i18n.translate(
'xpack.transform.pivotPreview.copyClipboardTooltip',
{
defaultMessage: 'Copy Dev Console statement of the pivot preview to the clipboard.',
}
)}
dataTestSubj="transformPivotPreview"
title={i18n.translate('xpack.transform.pivotPreview.PivotPreviewTitle', {
defaultMessage: 'Transform pivot preview',
})}
toastNotifications={toastNotifications}
/>
</EuiForm>
</div>
);
Expand Down

0 comments on commit 246f27a

Please sign in to comment.