Sha256: adec802f775ce93ff9c0a3a8a3881484b451654b7de3a509166ae0a88514d6ff

Contents?: true

Size: 508 Bytes

Versions: 60

Compression:

Stored size: 508 Bytes

Contents

import {
  selectAPIStatus,
  selectAPIResponse,
} from 'foremanReact/redux/API/APISelectors';
import { STATUS } from 'foremanReact/constants';

import { GET_CONTENT_CREDENTIALS_KEY } from './ContentCredentialConstants';

export const selectContentCredentials = (state) => {
  const response = selectAPIResponse(state, GET_CONTENT_CREDENTIALS_KEY);
  return response.results;
};

export const selectContentCredentialsStatus = state =>
  selectAPIStatus(state, GET_CONTENT_CREDENTIALS_KEY) || STATUS.PENDING;

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
katello-4.16.0 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.15.1 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.16.0.rc2 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.16.0.rc1 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.14.3 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.14.2 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.15.0 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.15.0.rc2 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.15.0.rc1 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.14.1 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.14.0 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.14.0.rc3 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.14.0.rc2 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.14.0.rc1.1 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.14.0.rc1 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.13.1 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.13.0 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.12.1 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.13.0.rc1 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js
katello-4.12.0 webpack/scenes/ContentCredentials/ContentCredentialSelectors.js