Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Index Management] Verify if isLoading before showing warning in add …
…lifecycle confirm modal (elastic#209108) Fixes elastic#208958 ## Summary In this modal, we show a warning banner if there is no policies. The problem was that the modal was render before the policies are loading. This PR adds a `isLoading` state that ensures that this warning only is shown if the policy list is empty after it has been fully loaded. ### How to test 1. Navigate to Index Management. 2. Create an index. 3. Select the index --> Click "Manage index" --> Click "Add lifecycle policy" 4. Verify that no warning flashes before the policy shows. Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information