-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07bf620
commit 311ef9c
Showing
14 changed files
with
410 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...gins/ingest_pipelines/public/application/components/pipeline_form/pipeline_form_error.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { FormattedMessage } from '@kbn/i18n/react'; | ||
import { EuiSpacer, EuiCallOut } from '@elastic/eui'; | ||
|
||
interface Props { | ||
errorMessage: string; | ||
} | ||
|
||
export const PipelineFormError: React.FunctionComponent<Props> = ({ errorMessage }) => { | ||
return ( | ||
<> | ||
<EuiCallOut | ||
title={ | ||
<FormattedMessage | ||
id="xpack.ingestPipelines.form.savePipelineError" | ||
defaultMessage="Unable to create pipeline" | ||
/> | ||
} | ||
color="danger" | ||
iconType="alert" | ||
data-test-subj="savePipelineError" | ||
> | ||
<p>{errorMessage}</p> | ||
</EuiCallOut> | ||
<EuiSpacer size="m" /> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...s/ingest_pipelines/public/application/components/pipeline_form/pipeline_form_provider.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import React from 'react'; | ||
|
||
import { PipelineForm, PipelineFormProps } from './pipeline_form'; | ||
import { TestConfigContextProvider, useTestConfig } from './test_config_context'; | ||
|
||
export const PipelineFormProvider: React.FunctionComponent<PipelineFormProps> = passThroughProps => { | ||
const testConfigContextValue = useTestConfig(); | ||
|
||
return ( | ||
<TestConfigContextProvider value={testConfigContextValue}> | ||
<PipelineForm {...passThroughProps} /> | ||
</TestConfigContextProvider> | ||
); | ||
}; |
Oops, something went wrong.