-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
None
-
Quality / Stability / Reliability
-
False
-
-
False
-
3
-
None
-
None
-
OCP Console - Sprint 277
As part of the work on react-router v5 drop, we need to migrate from the createModalLauncher instances in our codebase and we need to use the useOverlay hook instead.
To use this hook we have to firstly refactor actions that use createModalLauncher instances to accept a callback from useOverlay hook.
One such instance is machine-set.tsx menuActions, we should refactor it so that the group details and list page will receive actions from a console.action/resource-provider extension and newly introduced action provider hook.
AC:
- Create new useMachineSetActionProvider that would return the existing actions within menuActions.
- Expose the hook via extension console.action/resource-provider.
- Adjust the machine-set.tsx file to accept the actions from exposed hook (use ActionServiceProvider and LazyActionMenu for that, reference usePVCActionProvider and persistent-volume-claim.tsx) instead of menuActions.
- clones
-
CONSOLE-4683 Refactor group.tsx menuActions to accept actions from provider.
-
- Closed
-
- is cloned by
-
CONSOLE-4685 Refactor clusterserviceversion.tsx menuActions to accept actions from provider.
-
- Closed
-
- links to