kibana/x-pack/plugins/transform
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
..
common [ML] Transform: Enable force delete if one of the transforms failed (#69472) 2020-06-23 15:05:44 -05: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 Move and rename legacy elasticsearch client (#69797) 2020-06-29 17:43:31 +02:00
kibana.json