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) (#77865)
  • Loading branch information
peteharverson authored Sep 18, 2020
1 parent 31cb622 commit 950969c
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 950969c

Please sign in to comment.