Sha256: 25a1501d85fd93b1476d353abcae3069ad70254e33be7ec5c82c5f2501e2cc29

Contents?: true

Size: 978 Bytes

Versions: 23

Compression:

Stored size: 978 Bytes

Contents

export const selectSubscriptionsState = state =>
  state.katello.subscriptions;

export const selectSearchQuery = state =>
  selectSubscriptionsState(state).searchQuery;

export const selectDeleteModalOpened = state =>
  selectSubscriptionsState(state).deleteModalOpened;

export const selectDeleteButtonDisabled = state =>
  selectSubscriptionsState(state).deleteButtonDisabled;

export const selectActivePermissions = state =>
  selectSubscriptionsState(state).activePermissions;

export const selectSubscriptionsTask = state =>
  selectSubscriptionsState(state).task;

export const selectIsTaskPending = (state) => {
  const task = selectSubscriptionsTask(state);
  if (task) {
    return task.pending || task.result === 'pending';
  }
  return false;
};

export const selectManifestActionStarted = state =>
  selectSubscriptionsState(state).manifestActionStarted;

export const selectHasUpstreamConnection = state =>
  selectSubscriptionsState(state).hasUpstreamConnection;

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.15.0.rc1 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.14.1 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.14.0 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.14.0.rc3 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.14.0.rc2 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.14.0.rc1.1 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.14.0.rc1 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.13.1 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.13.0 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.12.1 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.13.0.rc1 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.12.0 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.12.0.rc3 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.12.0.rc2 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-4.12.0.rc1 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-3.17.3 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-3.17.2 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-3.17.1 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-3.17.0 webpack/scenes/Subscriptions/SubscriptionsSelectors.js