Sha256: 8b4ca5095b52c57168d4aefa4e0c3eb32618e1d3b81451d5b88a7c700378a0e6

Contents?: true

Size: 973 Bytes

Versions: 12

Compression:

Stored size: 973 Bytes

Contents

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

export const selectCVDetails = (state, cvId) =>
  selectAPIResponse(state, cvDetailsKey(cvId)) || {};

export const selectCVDetailStatus =
  (state, cvId) => selectAPIStatus(state, cvDetailsKey(cvId)) || STATUS.PENDING;

export const selectCVDetailError =
  (state, cvId) => selectAPIError(state, cvDetailsKey(cvId));

export const selectCVRepos = (state, cvId) =>
  selectAPIResponse(state, cvDetailsRepoKey(cvId)) || {};

export const selectCVReposStatus = (state, cvId) =>
  selectAPIStatus(state, cvDetailsRepoKey(cvId)) || STATUS.PENDING;

export const selectCVReposError = (state, cvId) =>
  selectAPIError(state, cvDetailsRepoKey(cvId));


export const selectIsCVUpdating = state => state.katello?.contentViewDetails?.updating;

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
katello-3.18.5 webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js
katello-3.18.4 webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js
katello-3.18.3.1 webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js
katello-3.18.3 webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js
katello-3.18.2.1 webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js
katello-3.18.2 webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js
katello-3.18.1.1 webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js
katello-3.18.1 webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js
katello-3.18.0 webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js
katello-3.18.0.rc2.1 webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js
katello-3.18.0.rc2 webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js
katello-3.18.0.rc1 webpack/scenes/ContentViews/Details/ContentViewDetailSelectors.js