kibana/x-pack/plugins/ml
Walter Rafelsberger bb96f5dd94
[ML] Transforms/DFA: Refactor list action buttons so modals won't unmount after button click. (#70555)
Related to #70383 and #63455.

Refactors the action buttons of the transform and data frame analytics jobs list:

Previously custom actions included state and JSX for e.g. confirmation modals. Problem with that: If the actions list popover hides, the modal would unmount too. Since EUI's behaviour will change with the release/merge of #70383, we needed a refactor that solves that issue right now.

With this PR, state management for UI behaviour that follows after a button click like the confirmation modals was moved to a custom hook which is part of the outer level of the buttons itself. The modal now also gets mounted on the outer level. This way we won't loose the modals state and DOM rendering when the action button hides.

Note that this PR doesn't fix the nested buttons issue (#63455) yet. For that we need EUI issue #70383 to be in Kibana which will arrive with EUI v26.3.0 via #70243. So there will be one follow up to that which will focus on getting rid of the nested button structure.
2020-07-08 10:10:32 +02:00
..
__mocks__ [ML] Clone analytics job (#59791) 2020-03-15 22:41:27 +01:00
common [APM] Adds 'Anomaly detection' settings page to create ML jobs per environment (#70560) 2020-07-07 13:30:14 +02:00
public [ML] Transforms/DFA: Refactor list action buttons so modals won't unmount after button click. (#70555) 2020-07-08 10:10:32 +02:00
server [ML] DF Analytics: add ability to edit job for fields supported by API (#70489) 2020-07-06 15:10:01 -04:00
.gitignore [ML] Client side cut over (#60100) 2020-03-13 19:16:41 +00:00
jsconfig.json [ML] Client side cut over (#60100) 2020-03-13 19:16:41 +00:00
kibana.json Properly redirect legacy URLs (#68284) 2020-06-24 11:26:19 +02:00
package.json [ML] Custom template for apiDoc markdown (#66567) 2020-05-15 11:41:29 +02:00
shared_imports.ts [ESUI] Move XJson Mode to src/plugins/es_ui_shared (#62758) 2020-04-10 12:58:18 +02:00
tsconfig.json [ML] Client side cut over (#60100) 2020-03-13 19:16:41 +00:00