Skip to content

Commit

Permalink
[ML] Adding edit job detector descriptions title (#115765) (#115913)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: James Gowdy <jgowdy@elastic.co>
  • Loading branch information
kibanamachine and jgowdyelastic authored Oct 21, 2021
1 parent eb1ef6d commit daef3f1
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@

import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { FormattedMessage } from '@kbn/i18n/react';

import { EuiFieldText, EuiForm, EuiFormRow, EuiSpacer } from '@elastic/eui';
import { EuiFieldText, EuiForm, EuiFormRow, EuiSpacer, EuiTitle } from '@elastic/eui';

import { mlJobService } from '../../../../../services/job_service';
import { detectorToString } from '../../../../../util/string_utils';
Expand Down Expand Up @@ -43,7 +44,16 @@ export class Detectors extends Component {
render() {
const { detectors, detectorDescriptions } = this.state;
return (
<React.Fragment>
<>
<EuiSpacer size="m" />
<EuiTitle size="xs">
<h4>
<FormattedMessage
id="xpack.ml.jobsList.editJobFlyout.detectors.title"
defaultMessage="Edit detector descriptions"
/>
</h4>
</EuiTitle>
<EuiSpacer size="m" />
<EuiForm>
{detectorDescriptions.map((d, i) => (
Expand All @@ -52,7 +62,7 @@ export class Detectors extends Component {
</EuiFormRow>
))}
</EuiForm>
</React.Fragment>
</>
);
}
}
Expand Down

0 comments on commit daef3f1

Please sign in to comment.