mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Reset state of pipeline flyout on close or completion (#155760)
## Summary Fixes a bug where adding a second pipeline would pop you into the last page of the previously added pipeline flyout.  ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
This commit is contained in:
parent
a3f66bdacf
commit
c0033a1b4b
1 changed files with 17 additions and 0 deletions
|
@ -66,6 +66,7 @@ import {
|
|||
sortModels,
|
||||
sortSourceFields,
|
||||
} from '../../../shared/ml_inference/utils';
|
||||
import { PipelinesLogic } from '../pipelines_logic';
|
||||
|
||||
import {
|
||||
AddInferencePipelineFormErrors,
|
||||
|
@ -227,6 +228,8 @@ export const MLInferenceLogic = kea<
|
|||
'apiSuccess as attachApiSuccess',
|
||||
'makeRequest as makeAttachPipelineRequest',
|
||||
],
|
||||
PipelinesLogic,
|
||||
['closeAddMlInferencePipelineModal as closeAddMlInferencePipelineModal'],
|
||||
],
|
||||
values: [
|
||||
CachedFetchIndexApiLogic,
|
||||
|
@ -348,6 +351,20 @@ export const MLInferenceLogic = kea<
|
|||
selectedSourceFields: [],
|
||||
};
|
||||
},
|
||||
closeAddMlInferencePipelineModal: () => ({
|
||||
configuration: {
|
||||
...EMPTY_PIPELINE_CONFIGURATION,
|
||||
},
|
||||
indexName: '',
|
||||
step: AddInferencePipelineSteps.Configuration,
|
||||
}),
|
||||
createApiSuccess: () => ({
|
||||
configuration: {
|
||||
...EMPTY_PIPELINE_CONFIGURATION,
|
||||
},
|
||||
indexName: '',
|
||||
step: AddInferencePipelineSteps.Configuration,
|
||||
}),
|
||||
removeFieldFromMapping: (modal, { fieldName }) => {
|
||||
const {
|
||||
configuration: { fieldMappings },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue