Sha256: 5ecd39cd7021fb60491520b89f6b150ae2bd7d9da3c4c7eb8b4f16e987fa2708

Contents?: true

Size: 595 Bytes

Versions: 8

Compression:

Stored size: 595 Bytes

Contents

import { API_OPERATIONS, get } from 'foremanReact/redux/API';
import { foremanApi } from '../../../../../services/api';
import { getResponseErrorMsgs } from '../../../../../utils/helpers';
import { MODULE_STREAMS_KEY } from './ModuleStreamsConstants';

const errorToast = error => getResponseErrorMsgs(error.response);

export const getHostModuleStreams = (hostId, params) => get({
  type: API_OPERATIONS.GET,
  key: MODULE_STREAMS_KEY,
  url: foremanApi.getApiUrl(`/hosts/${hostId}/module_streams`),
  errorToast: error => errorToast(error),
  params,
});

export default getHostModuleStreams;

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
katello-4.4.2.2 webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsActions.js
katello-4.4.2.1 webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsActions.js
katello-4.4.2 webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsActions.js
katello-4.4.1 webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsActions.js
katello-4.4.0.2 webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsActions.js
katello-4.4.0.1 webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsActions.js
katello-4.4.0 webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsActions.js
katello-4.4.0.rc2 webpack/components/extensions/HostDetails/Tabs/ModuleStreamsTab/ModuleStreamsActions.js