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 (elastic#204732)

Fix for: [elastic#204598](elastic#204598)

After:

<img width="995" alt="image"
src="https://github.com/user-attachments/assets/4c5404af-aa0d-4860-beb9-0ada9312f125"
/>

(cherry picked from commit b50bec8)
  • Loading branch information
rbrtj committed Dec 19, 2024
1 parent 86d8773 commit bf6a420
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 bf6a420

Please sign in to comment.