Sha256: c7d0fb8e27c61c398d7fc22072a70a33c15c47572ce7991f60d759dc21dd8541

Contents?: true

Size: 690 Bytes

Versions: 17

Compression:

Stored size: 690 Bytes

Contents

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

export const selectHostDetails = state =>
  selectAPIResponse(state, HOST_DETAILS_KEY) ?? {};

export const selectHostDetailsStatus = state =>
  selectAPIStatus(state, HOST_DETAILS_KEY) ?? STATUS.PENDING;

export const selectHostDetailsError = state =>
  selectAPIError(state, HOST_DETAILS_KEY);

export const selectHostDetailsState = state =>
  state.katello.hostDetails;

export const selectHostDetailsClearSearch = state =>
  selectHostDetailsState(state).clearSearch;

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
katello-4.7.6 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.7.5 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.8.0.rc2 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.7.4 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.8.0.rc1 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.7.3 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.7.2 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.7.1 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.6.2.1 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.6.2 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.7.0 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.6.1 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.7.0.rc2 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.7.0.rc1 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.6.0 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.6.0.rc2 webpack/components/extensions/HostDetails/HostDetailsSelectors.js
katello-4.6.0.rc1 webpack/components/extensions/HostDetails/HostDetailsSelectors.js