Skip to content

Commit

Permalink
[ML] Data frame analytics: Adds missing space between lines in delete…
Browse files Browse the repository at this point in the history
… job modal (#204732)

Fix for: [#204598](#204598)

After:

<img width="995" alt="image"
src="https://github.com/user-attachments/assets/4c5404af-aa0d-4860-beb9-0ada9312f125"
/>
  • Loading branch information
rbrtj authored Dec 19, 2024
1 parent 21008d2 commit b50bec8
Showing 1 changed file with 17 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
EuiFlexGroup,
EuiFlexItem,
EUI_MODAL_CONFIRM_BUTTON,
EuiSpacer,
} from '@elastic/eui';

import type { DeleteAction } from './use_delete_action';
Expand Down Expand Up @@ -79,16 +80,22 @@ export const DeleteActionModal: FC<DeleteAction> = ({
</EuiFlexItem>
<EuiFlexItem>
{userCanDeleteIndex && dataViewExists && (
<EuiSwitch
data-test-subj="mlAnalyticsJobDeleteDataViewSwitch"
label={i18n.translate('xpack.ml.dataframe.analyticsList.deleteTargetDataViewTitle', {
defaultMessage: 'Delete data view {dataView}',
values: { dataView: indexName },
})}
checked={deleteDataView}
onChange={toggleDeleteDataView}
disabled={userCanDeleteDataView === false}
/>
<>
<EuiSpacer size="s" />
<EuiSwitch
data-test-subj="mlAnalyticsJobDeleteDataViewSwitch"
label={i18n.translate(
'xpack.ml.dataframe.analyticsList.deleteTargetDataViewTitle',
{
defaultMessage: 'Delete data view {dataView}',
values: { dataView: indexName },
}
)}
checked={deleteDataView}
onChange={toggleDeleteDataView}
disabled={userCanDeleteDataView === false}
/>
</>
)}
</EuiFlexItem>
</EuiFlexGroup>
Expand Down

0 comments on commit b50bec8

Please sign in to comment.