Skip to content

Commit

Permalink
change start dfa job from checkbox to switch
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Nov 27, 2023
1 parent 6cd6dc6 commit 59cf486
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -8,11 +8,11 @@
import React, { FC, useState } from 'react';
import {
EuiButton,
EuiCheckbox,
EuiFlexGroup,
EuiFlexItem,
EuiFormRow,
EuiSpacer,
EuiSwitch,
} from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { CreateDataViewForm } from '@kbn/ml-data-view-utils/components/create_data_view_form_row';
Expand Down Expand Up @@ -91,9 +91,10 @@ export const CreateStep: FC<Props> = ({ actions, state, step, showCreateDataView
}
)}
>
<EuiCheckbox
data-test-subj="mlAnalyticsCreateJobWizardStartJobCheckbox"
id={'dataframe-create-start-checkbox'}
<EuiSwitch
data-test-subj="mlAnalyticsCreateJobWizardStartJobSwitch"
name="mlAnalyticsCreateJobWizardStartJobSwitch"
disabled={canCreateDataView === false}
label={i18n.translate('xpack.ml.dataframe.analytics.create.wizardStartCheckbox', {
defaultMessage: 'Start immediately',
})}
Expand Down

0 comments on commit 59cf486

Please sign in to comment.