Sha256: bd2dafd0896914948ca10e335ebc10c860932eb29bc4af73bcc6523512de4e03

Contents?: true

Size: 736 Bytes

Versions: 121

Compression:

Stored size: 736 Bytes

Contents

import api, { orgId } from '../../../services/api';
import {
  MODULE_STREAM_DETAILS_REQUEST,
  MODULE_STREAM_DETAILS_SUCCESS,
  MODULE_STREAM_DETAILS_FAILURE,
} from './ModuleStreamDetailsConstants';
import { apiError } from '../../../utils/helpers.js';

export const loadModuleStreamDetails = moduleStreamId => async (dispatch) => {
  dispatch({ type: MODULE_STREAM_DETAILS_REQUEST });

  try {
    const { data } = await api.get(`/module_streams/${moduleStreamId}`, {}, { organization_id: orgId() });
    return dispatch({
      type: MODULE_STREAM_DETAILS_SUCCESS,
      response: data,
    });
  } catch (error) {
    return dispatch(apiError(MODULE_STREAM_DETAILS_FAILURE, error));
  }
};

export default loadModuleStreamDetails;

Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
katello-4.14.2 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.15.0 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.15.0.rc2 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.15.0.rc1 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.14.1 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.14.0 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.14.0.rc3 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.14.0.rc2 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.14.0.rc1.1 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.14.0.rc1 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.13.1 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.13.0 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.12.1 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.13.0.rc1 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.12.0 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.12.0.rc3 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.12.0.rc2 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.12.0.rc1 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.11.1 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js
katello-4.11.0 webpack/scenes/ModuleStreams/Details/ModuleStreamDetailsActions.js