Sha256: ecdebcc8f2b3fef6fed4e226a72d34a844244eea0de27f1c8b3c0cd3af70c532
Contents?: true
Size: 970 Bytes
Versions: 11
Compression:
Stored size: 970 Bytes
Contents
import { translate as __ } from 'foremanReact/common/I18n'; import { API_OPERATIONS, put } from 'foremanReact/redux/API'; import { errorToast, renderTaskStartedToast } from '../../../../../scenes/Tasks/helpers'; import { foremanApi } from '../../../../../services/api'; import HOST_CV_AND_ENV_KEY from '../../../HostDetails/Cards/ContentViewDetailsCard/HostContentViewConstants'; export const bulkUpdateHostContentViewAndEnvironment = (params, bulkParams, handleSuccess, handleError) => put({ type: API_OPERATIONS.PUT, key: HOST_CV_AND_ENV_KEY, url: foremanApi.getApiUrl('/hosts/bulk/environment_content_view'), ...bulkParams, successToast: () => __('Host content view environments updating.'), handleSuccess: (response) => { if (handleSuccess) handleSuccess(response); return renderTaskStartedToast(response.data); }, handleError, errorToast, params, }); export default bulkUpdateHostContentViewAndEnvironment;
Version data entries
11 entries across 11 versions & 1 rubygems