Project

General

Custom queries

Profile

Actions

Feature #27853

closed

Integrate modals with Redux store

Added by Jeremy Lenz over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JavaScript stack
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Depends on https://github.com/theforeman/foreman/pull/7039
User stories:
Users should be able to check a status of a modal by id
Users should be able to close/open Modals by id

Added by Jeremy Lenz over 5 years ago

Revision 9c18affc (diff)

Fixes #27853: Connect ForemanModal to Redux store

For unsquashed commits, see jeremylenz/27853-modals-redux-unsquashed

Connect ForemanModal React component to Redux store.
Add useForemanModal hook
for reusing stateful logic in any ForemanModal component.
Modal state is now controlled by id with Redux actions.
Uses react-redux v7.1,
which includes useSelector hook
and allows use of Redux without connect,
mapStateToProps or mapDispatchToProps.

Actions

Also available in: Atom PDF