Sha256: 1cd2141dcdf46eb87c126bf95d887c6756f0c48baced130230e27678735c021b

Contents?: true

Size: 682 Bytes

Versions: 77

Compression:

Stored size: 682 Bytes

Contents

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

export const selectPublishContentViews = (state, cvId, versionCount) =>
  selectAPIResponse(state, cvVersionPublishKey(cvId, versionCount)) || {};

export const selectPublishContentViewStatus = (state, cvId, versionCount) =>
  selectAPIStatus(state, cvVersionPublishKey(cvId, versionCount)) || STATUS.PENDING;

export const selectPublishContentViewsError = (state, cvId, versionCount) =>
  selectAPIError(state, cvVersionPublishKey(cvId, versionCount));

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
katello-4.10.0 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.9.2 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.10.0.rc2 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.10.0.rc1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.8.4 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.9.1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.8.3 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.9.0 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.7.6 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.8.2 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.9.0.rc2 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.9.0.rc1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.8.1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.7.5 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.8.0 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.8.0.rc2 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.7.4 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.8.0.rc1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.7.3 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.7.2 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js