mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* Updates error message when creating ML job * Updated error message based on feedback
This commit is contained in:
parent
cdbefd368d
commit
c5240c5666
1 changed files with 5 additions and 12 deletions
|
@ -90,26 +90,19 @@ export class MachineLearningFlyout extends Component<FlyoutProps, FlyoutState> {
|
|||
};
|
||||
|
||||
public addErrorToast = () => {
|
||||
const { location, urlParams } = this.props;
|
||||
const { serviceName = 'unknown', transactionType } = urlParams;
|
||||
const { urlParams } = this.props;
|
||||
const { serviceName = 'unknown' } = urlParams;
|
||||
|
||||
if (!serviceName) {
|
||||
return;
|
||||
}
|
||||
|
||||
toastNotifications.addWarning({
|
||||
title: 'Job already exists',
|
||||
title: 'Job creation failed',
|
||||
text: (
|
||||
<p>
|
||||
There's already a job running for anomaly detection on{' '}
|
||||
{serviceName} ({transactionType}).{' '}
|
||||
<ViewMLJob
|
||||
serviceName={serviceName}
|
||||
transactionType={transactionType}
|
||||
location={location}
|
||||
>
|
||||
View existing job
|
||||
</ViewMLJob>
|
||||
Your current license may not allow for creating machine learning jobs,
|
||||
or this job may already exist.
|
||||
</p>
|
||||
)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue