-
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.
[CCR] Fix row actions in follower index and auto-follow pattern tables (
#84433) * Fixed auto follow actions * Created a provider for all follower index table actions to fix modal auto-closing * Moved i18n texts into a const to avoid duplication * Removed unnecessary imports and added index.js file for follower_index_actions_provider imports * Fixed wrong imports deletion * Fixed wrong imports deletion Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information
1 parent
ae9df69
commit 4ae84a0
Showing
8 changed files
with
217 additions
and
215 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
...public/app/components/follower_index_actions_providers/follower_index_actions_provider.js
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 { FollowerIndexPauseProvider } from './follower_index_pause_provider'; | ||
import { FollowerIndexResumeProvider } from './follower_index_resume_provider'; | ||
import { FollowerIndexUnfollowProvider } from './follower_index_unfollow_provider'; | ||
|
||
export const FollowerIndexActionsProvider = (props) => { | ||
return ( | ||
<FollowerIndexPauseProvider> | ||
{(pauseFollowerIndex) => ( | ||
<FollowerIndexResumeProvider> | ||
{(resumeFollowerIndex) => ( | ||
<FollowerIndexUnfollowProvider> | ||
{(unfollowLeaderIndex) => { | ||
const { children } = props; | ||
return children(() => ({ | ||
pauseFollowerIndex, | ||
resumeFollowerIndex, | ||
unfollowLeaderIndex, | ||
})); | ||
}} | ||
</FollowerIndexUnfollowProvider> | ||
)} | ||
</FollowerIndexResumeProvider> | ||
)} | ||
</FollowerIndexPauseProvider> | ||
); | ||
}; |
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
10 changes: 10 additions & 0 deletions
10
...cross_cluster_replication/public/app/components/follower_index_actions_providers/index.js
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,10 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
export { FollowerIndexActionsProvider } from './follower_index_actions_provider'; | ||
export { FollowerIndexPauseProvider } from './follower_index_pause_provider'; | ||
export { FollowerIndexResumeProvider } from './follower_index_resume_provider'; | ||
export { FollowerIndexUnfollowProvider } from './follower_index_unfollow_provider'; |
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
Oops, something went wrong.