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.15.0.rc2 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.15.0.rc1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.14.1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.14.0 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.14.0.rc3 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.14.0.rc2 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.14.0.rc1.1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.14.0.rc1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.13.1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.13.0 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.12.1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.13.0.rc1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.12.0 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.12.0.rc3 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.12.0.rc2 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.12.0.rc1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.11.1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.11.0 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.11.0.rc2 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js
katello-4.11.0.rc1 webpack/scenes/ContentViews/Publish/ContentViewPublishSelectors.js