Skip to content

Commit

Permalink
[ML] Remove "Are you sure" from data frame analytics models (#76215) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lcawl authored Aug 31, 2020
1 parent 2e10ace commit 5a2410a
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
EuiModalFooter,
EuiButtonEmpty,
EuiButton,
EuiSpacer,
EuiCallOut,
} from '@elastic/eui';
import { ModelItemFull } from './models_list';
Expand All @@ -37,7 +36,7 @@ export const DeleteModelsModal: FC<DeleteModelsModalProps> = ({ models, onClose
<EuiModalHeaderTitle>
<FormattedMessage
id="xpack.ml.inference.modelsList.deleteModal.header"
defaultMessage="Delete {modelsCount, plural, one {{modelId}} other {# models}}"
defaultMessage="Delete {modelsCount, plural, one {{modelId}} other {# models}}?"
values={{
modelId: models[0].model_id,
modelsCount: models.length,
Expand All @@ -47,12 +46,6 @@ export const DeleteModelsModal: FC<DeleteModelsModalProps> = ({ models, onClose
</EuiModalHeader>

<EuiModalBody>
<FormattedMessage
id="xpack.ml.inference.modelsList.deleteModal.warningMessage"
defaultMessage="Are you sure you want to delete {modelsCount, plural, one{this model} other {these models}}?"
values={{ modelsCount: models.length }}
/>
<EuiSpacer size="m" />
{modelsWithPipelines.length > 0 && (
<EuiCallOut
data-test-subj="modelsWithPipelinesWarning"
Expand Down

0 comments on commit 5a2410a

Please sign in to comment.