webpack/scenes/Subscriptions/index.js in katello-3.9.1 vs webpack/scenes/Subscriptions/index.js in katello-3.10.0.rc1

- old
+ new

@@ -6,23 +6,34 @@ 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, + 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 { - organization: state.katello.organization, - subscriptions: state.katello.subscriptions, - tasks: state.katello.subscriptions.tasks, + subscriptions, subscriptionTableSettings, + tasks: selectSubscriptionsTasks(state), + searchQuery: selectSearchQuery(state), + manifestModalOpened: selectManifestModalOpened(state), + deleteModalOpened: selectDeleteModalOpened(state), + organization: state.katello.organization, taskDetails: state.katello.manifestHistory.taskDetails, }; }; // map action dispatchers to props