Sha256: 3b703e36448ad7ffc77fd30ca638785bcdb30a490830fa6e0fcb52cd205bd677

Contents?: true

Size: 983 Bytes

Versions: 9

Compression:

Stored size: 983 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 selectTableSettings = (state, tableName) =>
  state.katello.settings.tables[tableName] || undefined;

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-3.16.2 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-3.16.1.2 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-3.16.1.1 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-3.16.1 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-3.16.0 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-3.16.0.rc5.1 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-3.16.0.rc5 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-3.16.0.rc4.1 webpack/scenes/Subscriptions/SubscriptionsSelectors.js
katello-3.16.0.rc4 webpack/scenes/Subscriptions/SubscriptionsSelectors.js