Sha256: e00d5376bb6528abb33754593898db1340490b64927a09300d3ea1506aa07eb7
Contents?: true
Size: 1.88 KB
Versions: 3
Compression:
Stored size: 1.88 KB
Contents
import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as subscriptionActions from './SubscriptionActions'; import * as taskActions from '../Tasks/TaskActions'; import * as settingActions from '../../move_to_foreman/Settings/SettingsActions'; import * as tableActions from '../Settings/Tables/TableActions'; import * as manifestActions from './Manifest/ManifestActions'; import { selectSubscriptionsState, selectSearchQuery, selectManifestModalOpened, selectDeleteModalOpened, selectTaskModalOpened, selectDeleteButtonDisabled, selectSubscriptionsTasks, } from './SubscriptionsSelectors'; import reducer from './SubscriptionReducer'; import { SUBSCRIPTION_TABLE_NAME } from './SubscriptionConstants'; import SubscriptionsPage from './SubscriptionsPage'; // map state to props const mapStateToProps = (state) => { const subscriptions = selectSubscriptionsState(state); const subscriptionTableSettings = state.katello.settings.tables[SUBSCRIPTION_TABLE_NAME] || {}; return { subscriptions, subscriptionTableSettings, tasks: selectSubscriptionsTasks(state), searchQuery: selectSearchQuery(state), manifestModalOpened: selectManifestModalOpened(state), deleteModalOpened: selectDeleteModalOpened(state), taskModalOpened: selectTaskModalOpened(state), deleteButtonDisabled: selectDeleteButtonDisabled(state), organization: state.katello.organization, taskDetails: state.katello.manifestHistory.taskDetails, }; }; // map action dispatchers to props const actions = { ...subscriptionActions, ...taskActions, ...settingActions, ...tableActions, ...manifestActions, }; const mapDispatchToProps = dispatch => bindActionCreators(actions, dispatch); // export reducers export const subscriptions = reducer; // export connected component export default connect(mapStateToProps, mapDispatchToProps)(SubscriptionsPage);
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
katello-3.11.0 | webpack/scenes/Subscriptions/index.js |
katello-3.11.0.rc2 | webpack/scenes/Subscriptions/index.js |
katello-3.11.0.rc1 | webpack/scenes/Subscriptions/index.js |